Facebook like button code

Hello,

I am using a theme that creates classified adverts from posts. The theme does not use custom post types.

The facebook like button shows up on pages but not on the classified page. Is there code I can add to the classified page to show the like button. Shortcodes are not an option as it would take hours going through every classified ad to add the code.

  • Kimberly
    • Champion of Loops

    Hello ebrown!

    Currently the only settings for visibility are located within the plugin.

    You can see there are other options to display the Like button elsewhere on the site by visiting Dashboard:Facebook:Like/Send Button See pic

    Just be sure to note that the check-boxes are for locations where you do NOT want the Like to display :slight_smile:

    Best,

    Kimberly

    [attachments are only viewable by logged-in members]

  • Kimberly
    • Champion of Loops

    If this was any other plugin then maybe so, just a code would be easy, but messing with Facebook is so wishy-washy :slight_smile:

    I will ping the developer to see if he can provide some feedback on this.

    Edit to include:

    Please note that he may not be along very quickly, he is currently working on a priority non-plugin project that will be done shortly

  • Vladislav
    • Dead Eye Dev

    Hi,

    This is really dependent on how your theme displays the classifieds. Obviously, adding shortcodes to each and every classified wouldn’t be an option, but you can actually still use the button shortcode if you can locate a place in your templates where the theme renders them. The only thing is, you’d have to wrap your shortcode in a “do_shortcode” function call, e.g. like this:

    <?php echo do_shortcode('[wdfb_like_button]'); ?>