Timeline for Conditional for Custom Post Types
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 21, 2012 at 13:57 | comment | added | prettyboymp | based on this explanation, your best solution is to just pass in the post_id of the newest episode as an 'exclude' argument to your second query. | |
Nov 9, 2011 at 17:12 | comment | added | Erika | My site is for an online radio show. I have 2 queries on the homepage. The first query grabs the newest episode information and is displayed at the top of the page along with the video player for the live show. The second queries everything else which includes a custom post type called 'stories', past episodes and regular posts. As it is now, when I post a new episode is shows up perfectly at the top of the page, but is duplicated in the second query. I don't want the newest episode post type to show up in the second query but I do want past episodes to appear. Make sense? | |
Nov 9, 2011 at 17:06 | comment | added | Erika | I'll do my best to explain. | |
Nov 7, 2011 at 21:43 | history | answered | Kevin Langley Jr. | CC BY-SA 3.0 |