• 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.

    Thanks,
    Erika

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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:

    post_id,post_title,post_permalink,views
    ,,http://www.tech-otaku.com/,4221
    ,,http://www.tech-otaku.com/,4127
    ,,http://www.tech-otaku.com/,2508
    0,Home page,http://www.tech-otaku.com/,2307
    ,,http://www.tech-otaku.com/,2195
    ,,http://www.tech-otaku.com/,1719

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

    Thanks, Steve

    Thread Starter erikajurney

    (@erikajurney)

    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?

    Thanks,
    Erika

    Erika,

    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.

    Thread Starter erikajurney

    (@erikajurney)

    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!
    Erika

    Thread Starter erikajurney

    (@erikajurney)

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

    I’ll look at this again tomorrow 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress.com Stats] post_id no longer returns a value’ is closed to new replies.