wp_get_archives, postbypost, duplicates – taxonomy?
-
I’m having trouble calling the wp_get_archives function using the “postbypost” type. It’s returning duplicates and I’ve tracked it down to the query joining on the wp_term_taxonomy table where there are multiple entries in this table per post. This appears to be because I have multiple categories assigned to some posts. Those assigned to just one category display twice whereas those assigned to multiple categories show even more times.
Here’s how I’m calling the function for my left sidebar/column:
wp_get_archives(‘type=postbypost&limit=10’);
Is this supposed to work this way?
Any ideas greatly appreciated!
~ Jenifer
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp_get_archives, postbypost, duplicates – taxonomy?’ is closed to new replies.