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

    (@gwin)

    Hi,
    i am not really familiar with this plugin, but i am guessing that it will find the image only if the Custom Post Type has Featured Images enabled (by default WPAdverts does not) and if the featured image is set.

    You would need to check that with plugin author and if that’s the case, you can enable featured images by adding this code to your theme functions.php file

    
    add_filter( "adverts_post_type", "my_adverts_post_type", 10, 2);
    function my_adverts_post_type( $args, $type ) {
        if( $type != "advert" ) {
            return $args;
        }
        $args["supports"][] = "thumbnail";
        return $args;
    }
    
    Thread Starter HoussenMoshine

    (@houssenmoshine)

    Hi, it’s work now. Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Microdata and image in the Widget Recent Ads’ is closed to new replies.