• Resolved klausharms

    (@klausharms)


    We tried some plugins to bring share buttons to the ad pages. So they are not shown, even when using likebtn plugin, nothing is shown on the page.

    Who can help to solve this issue?

    Thanks!

    Greetings

    Klaus

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes! I too have the same issue. I have tried MANY of the plugins in the repository with no luck. Been mulling through it for many hours. The shares show up on my category pages of wp-adverts and the sharing plugin does allow for custom post types which is ‘adverts’ but nothing seems to work on the actual ad listing.

    I switched to the 2016 wordpress theme just for testing and got the exact same results so I don’t think it’s a theme issue, nor can I find any JS errors.

    I am using Social Warfare, but I have tried the top others plugins also. It’s almost like the advert is in its own container that nothing is allowed to be appended to the top or bottom of the advert.

    My site is http://www.delmarvafind.com

    I have enabled the Social plugin so you can see where it works on my site and where it does not. Thanks for any help

    • This reply was modified 8 years, 5 months ago by cherlihy.
    Thread Starter klausharms

    (@klausharms)

    That is our problem as well. Thanks for posting.

    Greetings

    Klaus

    • This reply was modified 8 years, 5 months ago by klausharms.
    Plugin Author Greg Winiarski

    (@gwin)

    Hi, in WPAdverts the_content filter is executed with priority 9999 to avoid having the content malformed by other plugins which apply some custom formatting to the_content (so, for example, the new line characters are not replaced with <p> tags.

    In order to change it and render the content for Adverts details page you can deregister the adverts the_content filter and register it with higher priority, to do that please paste the code below in your theme functions.php

    
    add_action( "init", "set_priority_for_wpadverts_the_content", 20 );
    function set_priority_for_wpadverts_the_content() {
        remove_filter('the_content', 'adverts_the_content', 9999);
        add_filter('the_content', 'adverts_the_content', 10 );
    }
    

    I tested with the Social Warfare plugin mentioned in the comment and it seems to be working fine for me.

    Switching adverts_the_content priority should not have any consequences in a properly coded WP theme.

    Thread Starter klausharms

    (@klausharms)

    Thanks, Greg; that did the trick!

    Greetings

    Klaus

    Thank you Greg, that worked for me also!

    Plugin Author Greg Winiarski

    (@gwin)

    Ok great :), i am resolving the ticket then.

    Yes, still works 🙂 Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Share buttons on ad pages?’ is closed to new replies.