Skip to main content
13 events
when toggle format what by license comment
Oct 12, 2012 at 18:43 answer added Rune timeline score: 1
Aug 3, 2012 at 14:57 answer added Michael Cox timeline score: 3
May 23, 2012 at 8:15 history tweeted twitter.com/#!/StackWordPress/status/205210222602616832
May 21, 2012 at 18:25 history edited Rich CC BY-SA 3.0
edited tags
May 21, 2012 at 18:25 answer added Rich timeline score: 1
May 21, 2012 at 16:25 history edited Rich CC BY-SA 3.0
added 344 characters in body
May 21, 2012 at 15:48 comment added Rich Ok, updated code to be exact, and fixed the posts_per_page element. As for custom post name - if I take the post post type out of this statement it returns the 4 most recent recipes. This is the main loop for this page.
May 21, 2012 at 15:47 history edited Rich CC BY-SA 3.0
added 131 characters in body
May 21, 2012 at 7:08 answer added Chris_O timeline score: 2
May 21, 2012 at 4:47 comment added mrwweb Just dotting the I's and crossing the T's :) Some more things to try. 1) Can you confirm that this is your full code snippet and it's not whittled down for example? 2) Have you double-checked the CPT name? 3) How are you showing the loop? A little more code after this snippet might show something else as the culprit. 4) I just noticed this. posts_per_page is supposed to take an integer not a string. Drop the quotes and try it again.
May 21, 2012 at 4:23 comment added Rich Yes I am - I published a test post, page and recipe and still have the issue. Also found out that if I have posts, pages and recipes only the first item in the array will display (posts) but if recipes isn't in there it displays both posts and pages like it should
May 21, 2012 at 3:59 comment added mrwweb are you 100% sure that a recipe falls within the four most recent posts/recipes?
May 21, 2012 at 3:56 history asked Rich CC BY-SA 3.0