WordPress.com Stats
post_id no longer returns a value (6 posts)

  1. erikajurney
    Posted 5 years ago #

    I've been using the 'How do I add a Top Posts widget to my blog?' trick from the bottom of this page http://wordpress.org/extend/plugins/stats/faq/

    I finally figured out why it stopped working for me (the way I use it) a few days ago - the post_id variable in the array stopped being set.

    For the home page it is being set to 0, and for all other pages I checked it is just empty. var_dump($top_posts) to see what I mean.

    Is this coming back - I really need it.


  2. tech-otaku
    Posted 5 years ago #

    Same here.

    I noticed that post_title is also blank and post_permalink is set to the same root URL for every post. Here's the info returned for my site:

    0,Home page,http://www.tech-otaku.com/,2307

    Would be nice to know if this is going to be fixed.

    Thanks, Steve

  3. erikajurney
    Posted 5 years ago #

    FYI, post_title and post_permalink are working fine for me.

    Anyone know if this forum is read by people who can fix or explain this problem?


  4. tech-otaku
    Posted 5 years ago #


    Have installed the Jetpack plugin which I believe supersedes the WordPress.com Stats plugin.

    My stats appear to be showing correctly on the WP Dashboard and the information I'm getting using the API is a little better.

    While I'm seeing post_id for some of my posts now, those posts have the correct post_title and post_permalink. The others without post_id still have other erroneous data.

    Regards, Steve.

  5. erikajurney
    Posted 5 years ago #

    OK, now things are changing... post_id is there (yay) but post_permalink doesn't respect the permalink format of the blog. It is in the http://BLOGURL/?p=24087 format.

    That I can live with, but I'm still going to wait a day or so before turning this all back on on my site. Since I haven't seen an official post about what is going on, I don't know if post_id will *keep* working or not.

    But like I said, 'yay' for the return of post_id.

    Thank you mystery programmer!

  6. erikajurney
    Posted 5 years ago #

    Good grief, I posted too soon. Now post_title is gone...

    I'll look at this again tomorrow ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic