Support » Plugin: WPAdverts - Classifieds Plugin » Shared image on FB and Twitter

  • Hi there.
    i would have one question left please. I have problems when sharing an add on facebook or somewhere else.
    The add image is not shown when shared. I tried the FB debugger already, but no way as you can see here:

    Facebook debugger

    The image what is shown is the favicon of the site and not the add image.
    Any idea what i could do?

    Thank you very much in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry friends, worng link above:
    Facebook debugger

    Plugin Author Greg Winiarski


    to have an image from the Ad gallery shown when sharing an Ad on FB, the image needs to be marked as featured.

    To do that you would need to:

    1. enable featured images for WPAdverts by default they are disabled, you can do that by adding the code below in your theme functions.php file

    add_action("adverts_post_type", "customize_adverts_post_type");
    function customize_adverts_post_type( $args ) {
       $args["supports"][] = "thumbnail";
       return $args;

    2. now in the Ad gallery, click pencil (edit) icon, a new modal window will open, check the “Use this image as main image” checkbox and save.

    When sharing an Advert the image you selected as main image should be then shown on FB.

    If you want all Ads that are being added to have a featured image selected by default you can install a Force Featured Image snippet

    How to install the snippet you can read here at the bottom of the page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.