$do_not_duplicate based on Title
-
I understand that i can list posts without duplicating them if they are in multiple categories. however i have a scenario where I am using a custom post type for a client.
the posts are all in a single category, with no tags etc. it’s basically just a list of posts relating to events on certain dates.
i’m using wp_query to list posts based on posts_status=future.
however many of these posts will span many days or weekends, each will have it’s own booking. I have created a widget to display a list of these events on certain pages.
however the client wants to know if i can remove the duplicate items.
i looked everywhere, but do_not_duplicate works on post->ID, not useful in my situation as all the posts are in the same category and will have seperate id’s. though the titles for multiple events held weekly are identical.. is there a way i can change or add functionality so that i could possibly use $do_not_duplicate = $post->TITLE instead?
i don’t mind delving into the core if i know what to look for, but i wondered if there was an easier way of achieving this?
- The topic ‘$do_not_duplicate based on Title’ is closed to new replies.