Forums

Popular Posts Plugin - Duplicate Entries (16 posts)

  1. AmishPatel
    Member
    Posted 2 years ago #

    Describing this plugin: http://rmarsh.com/plugins/popular-posts-plugin/

    My site is http://www.wrestling-edge.com and the plugin should work under ' Popular Stories From The Wrestling World'

    It has always worked fine but recently it has started to show duplicate entries in the box and I have no idea why - no settings have changed... and I've explored all the different plugin options and it's all OK.. I've even played around to see if it makes a different but it's not... the actual posts aren't duplicating so I don't know why it's happening.

    The code used to call the plugin is:

    <ul>
    <?php popular_posts('included_cats=1,8,7,6&output_template=<li><a href="{url}" title="{title}">{title:48:trim}</a></li>&divider=&age-direction=after&age-length=1&age-duration=day'); ?>
    </ul>

    Anyone please help? This is so annoying.

  2. Shane G.
    Member
    Posted 2 years ago #

  3. AmishPatel
    Member
    Posted 2 years ago #

    Thanks for the reply Shane, but those won't work. I don't actually have duplicate posts... the plugin is just showing the names of post more than once - they link to the same thing.

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Just a guess, but is it because the posts are in more than one category?

  5. AmishPatel
    Member
    Posted 2 years ago #

    Nope, the posts are in single categories. It is very rarely that they overlap. In one case, it is showing the same entry 4 times from one different category. It's not even showing all the news posts from the day before also.

    Don't know what to do - is there any other similar script or anyone who knows how this can be solved..

  6. MichaelH
    Volunteer
    Posted 2 years ago #

    If you don't get an answer to the problem, might look at other plugins:

    http://wordpress.org/extend/plugins/wordpress-popular-posts/
    http://wordpress.org/extend/plugins/tags/popular

  7. AmishPatel
    Member
    Posted 2 years ago #

    I will look at them but I like this script - would prefer to fix the problem.

  8. MichaelH
    Volunteer
    Posted 2 years ago #

    That plugin uses the wp_postmeta records where the meta_key is pvc_views so wonder if mutiple records for those posts got created in wp_postmeta somehow.

  9. AmishPatel
    Member
    Posted 2 years ago #

    any idea how i can check?

  10. MichaelH
    Volunteer
    Posted 2 years ago #

    Determine the post id for one of those duplicates
    2. Use phpMyAdmin and look at your wp_postmeta table and look for records/rows that have that post_id with the meta_key of pvc_views.

  11. AmishPatel
    Member
    Posted 2 years ago #

    All I see is:
    42948 7680 pvc_views 638

    and
    38 3 pvc_views 135235

    Post ids dont match up to anything in there

  12. MichaelH
    Volunteer
    Posted 2 years ago #

    click on the post_id column to sort them in order and then look to see if there's more than one for a given post_id. Of course this is all a guess ;)

  13. AmishPatel
    Member
    Posted 2 years ago #

    Hi Michael,

    I think you were right on this. For all posts, it is creating two custom fields for pvc_views so we have to delete one to stop the duplication.

    How can this be resolved properly in Lehman terms because I'm not very technical :D

    Thanks!

  14. AmishPatel
    Member
    Posted 2 years ago #

    Anyone help on this?

  15. AmishPatel
    Member
    Posted 2 years ago #

    Anyone at all..

  16. AmishPatel
    Member
    Posted 2 years ago #

    there must be someday that can help with this!!!

Topic Closed

This topic has been closed to new replies.

About this Topic