• Resolved ecstoreweb

    (@ecstoreweb)


    Hi, I would like to show ads from a given category in a carousel. I tried using your snippet “force-featured-images” and “Responsive Posts Carousel” plugin. Ads appears in carousel without images. Do you have any suggestions on how to do this using maybe another plugin?
    thanks

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

    (@gwin)

    Hi,
    are the images featured in the gallery when you save an Ad?

    If they are then you will also need to make sure that the Adverts have the support for featured images enabled, you can do that by adding the code below in your theme functions.php file

    
    add_filter("adverts_post_type", "enable_featured_images");
    function enable_featured_images( $args ) {
       $args["supports"][] = "thumbnail";
       return $args;
    }
    

    After adding the code edit one of the Ads from wp-admin / Classifieds panel and check if in the right sidebar there is a Featured Image widget with an image selected. If there is then Adverts are setup correctly to use the featured images.

    Thread Starter ecstoreweb

    (@ecstoreweb)

    Thanks, now are working. I would suggest you to put this in your snippet “force-featured-images”

    thanks for the support

    Thread Starter ecstoreweb

    (@ecstoreweb)

    resolved

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