• Resolved kintango

    (@kintango)


    Hi!
    Please, how can i display view counter & sharing buttons when someone consult an ad ? I tried some plugins but they only show views on [advert_add] page. I want to show number of viewers, sharing buttons (maybe ratings) on the url/advert/advert_title page, and if it’s possible on the advert_list (grid mode) display.

    2 – I also want to solve a problem appearing when price is too long (millions or billions). With the grid mode, the price an the date collapse when price is too long

    Thanks for taking time to help me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kintango

    (@kintango)

    Hi. I solve the problem 2 by css, but i still have problem with social icons and views count. I tried AddtoAny plugin or Post view, nada

    Plugin Author Greg Winiarski

    (@gwin)

    WPAdverts does not have any social sharing features by default, you should, however, be able to integrate with most of the social sharing plugins (like Social Warfare) after adding the code below in your theme functions.php file

    
    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 );
    }
    

    This should also work with the plugin which shows page views on Ad detail pages.

    Thread Starter kintango

    (@kintango)

    @gwin Can I put this code in a snippet instead of add to the theme function ?

    Plugin Author Greg Winiarski

    (@gwin)

    Yes, you can add it to some snippet or even create a new WordPress plugin and paste it there.

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

The topic ‘Ads view count & sharing’ is closed to new replies.