• Resolved wosley24

    (@wosley24)


    I just added a few classifieds but there is one thing I would like to add that I cannot see.
    How can I add a featured image and excerpt?
    Because in my site I wanna display the first three classifieds in which I need to see the title and the featured image.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, you can enable featured images and excerpts in wp-admin panel by adding the code below to your theme functions.php file

    
    add_action("adverts_post_type", "customize_adverts_post_type");
    function customize_adverts_post_type( $args ) {
       $args["supports"][] = "thumbnail";
       $args["supports"][] = "excerpt";
       return $args;
    }
    
    Thread Starter wosley24

    (@wosley24)

    Hi Greg,
    I just pasted the code you sent and managed to add a featured image. However, I went to Appearence-Widgets and added the WPAverts Ads to a widget position. When I view on the front-end I only see the titles.
    I also selected the categories, but I only see the titles ??
    And also no read more button since there is an excerpt.

    Please help

    • This reply was modified 7 years, 1 month ago by wosley24.
    Plugin Author Greg Winiarski

    (@gwin)

    Hi, currently it is not possible to have featured images in the Recent Adverts widget as the widget does not support images, to have such feature you would need to develop your own Recent Ads widget.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Classifieds featured image’ is closed to new replies.