• Resolved mperry8304

    (@mperry8304)


    Hello, I’ve used your plugin to make a custom post type, called quotes. It’s worked really well except that I notice on the archive page quotes are repeated. For example, the last quote at the bottom of page two is repeated as the second quote of page three of the archive page.

    I’ve tried different themes, and turning off the plugins and the issue persists.

    The “has archive” setting is set to true.

    How do I get the quotes to not repeat?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hard to say exactly why this is going on, since we don’t have anything custom being utilized to modify queries being made. The question is ultimately what are the code requests being made during these times, or what modifications may be being made.

    Did you turn off ALL plugins except CPTUI? Alternatively, is there anything in your mu-plugins folder that may have been missed.

    Last but not least idea…is it possible you have duplicate quotes created? Can you check your quotes posts list in the admin to verify?

    Thread Starter mperry8304

    (@mperry8304)

    I double checked and turned off all the plugins except CTPUI and used a default WP theme. The issue recurred. I cleared the CloudFlare cache. I even set up a new page to display the quotes. It happens every time.

    Oh and the duplicate content was the first thing I checked. ?? Nope. I’ve checked it a few different ways.

    Any other ideas?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Only lingering idea I have is some code put in the mu-plugins folder, which you won’t see much of from the admin dashboard itself. You will be able to see if there’s anything at all in there by visiting https://www.charlesdickensinfo.com/wp-admin/plugins.php?plugin_status=mustuse

    Otherwise, I could take a peak at the settings for the post type to see if anything odd stands out to me. Just visit CPTUI > Tools and copy/paste the blob of text on the right.

    Thread Starter mperry8304

    (@mperry8304)

    I checked on the MU plugins. That’s okay.

    Thanks for your kind offer to look at the settings. Here they are. Does anything look off?

    {“quotes”:{“name”:”quotes”,”label”:”Quotes”,”singular_label”:”Quote”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”6″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:”dashicons-book”,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”custom-fields”,”page-attributes”,”post-formats”],”taxonomies”:[“category”,”post_tag”],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””}}

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Nothing out of the ordinary sadly. I was hoping for a potential quick easy yet still odd win with that last part.

    Beyond that I’m out of ideas.

    Thread Starter mperry8304

    (@mperry8304)

    Thanks for your time! If I ever get it figured out I’ll let you know.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thanks. I have feeling this one will bother me and I’ll lose sleep over it ?? Probably not, but legit curious what’s going on.

    Thread Starter mperry8304

    (@mperry8304)

    OK, I think I know what happened. The quotes existed in their own database before I added them to WordPress. I used WP All Import to add them to WordPress. It’s a great plugin and it worked great. However, I think that it added items so quickly that some of them have the same timestamp. That confuses WordPress.

    To fix the issue I’ve done two things. In addition to bringing in the quotes, I brought in their original ID number. If I sort by that, there’s no problem. I also experimented with changing the timestamp in an item that was repeating and it went away.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Interesting and good to hear it looks like you have it solved. Thanks for the followup.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Repeating Items in Archive’ is closed to new replies.