Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter 36pix

    (@36pix)

    Man oh man. Got it working. I had to add the following to my function:

    global $wp_query;
    $post = $wp_query->post->ID;

    I thought this was available in functions.php naturally. The rest looks like this:

    $tags = wp_get_post_tags($post);
    
    if ($tags) {
        foreach($tags as $tag) {
            $tag_link = get_tag_link($tag->term_id);
            echo "<li><div><a href='$tag_link' class='used-tag' rel='tag'>".($tag->name)."</a><em>" . $post . "</em></div></li>";
        }
    }

    How about a simple cookie that times out in 15, 30, 60 minutes etc. Most visitors to my site only stick around for 7 minutes. If it can set a cookie per post that prevents their browsing from racking up the pageviews for several minutes it would be much better than counting every single reload.

    There is another plugin called post-views which does this perfectly and I’m using it in the short term but my fear is that it stores too much data and will bloat my DB. Your plugin is much more efficient but needs a cookie to make the page counts a little more realistic/honest.

    @enejb

    I haven’t experienced any outright bugs. However, the one glaring issue we have with the section-widget is that it’s not registering itself properly. The data in the widget body has no filter applied so the WPML translator plugin has no idea that there is a ton of content to be translated.

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