Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Sternberg

    (@jtsternberg)

    Please see this thread in case it is helpful in solving your issue: https://www.ads-software.com/support/topic/problem-using-shortcodes?replies=5

    Thread Starter gadongga

    (@gadongga)

    Added the new code below at the end of functions.php file.
    Still doesn’t work….

    function gtc_page_title_add_viewcount_total( $title, $analytics ) {

    if ( isset( $analytics[‘value’] ) ) {
    // Add the page view count to the title value
    $title .= ‘ [‘. absint( $analytics[‘value’] ) .’ Views]’;
    }

    return $title;
    }
    add_filter( ‘gtc_page_title’, ‘gtc_page_title_add_viewcount_total’, 10, 2 );

    Thread Starter gadongga

    (@gadongga)

    Actually it does work! I don’t know why it wasn’t working instantly and it works now when I checked in a few hours…Thanks always Justin.

    Plugin Author Justin Sternberg

    (@jtsternberg)

    Awesome! It wouldn’t work right away because there is caching in place (so that the API is not queried too frequently). Glad it’s working for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘It seems page view feature doesn't work anymore..’ is closed to new replies.