| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year |
| seen | Nov 24 '12 at 21:39 | |
| stats | profile views | 1 |
I'm still getting started with wordpress a bit - Hopefully soon enough I'll have something to contribute back to everyone!
|
May 22 |
awarded | Teacher |
|
May 22 |
awarded | Student |
|
May 21 |
revised |
Unable to display multiple post types in same query (WPML WP_Query) edited tags |
|
May 21 |
answered | Unable to display multiple post types in same query (WPML WP_Query) |
|
May 21 |
revised |
Unable to display multiple post types in same query (WPML WP_Query) added 344 characters in body |
|
May 21 |
comment |
Unable to display multiple post types in same query (WPML WP_Query) @Milo - I just realized that, in fact, I'm not using the main loop. duh. I modified the above code to use a new WP_Query |
|
May 21 |
comment |
Unable to display multiple post types in same query (WPML WP_Query) @Milo - would it work better to use a new WP_Query? I know I'm going to have other loops on the page using WP_Query.. |
|
May 21 |
comment |
Unable to display multiple post types in same query (WPML WP_Query) @Chris_O - checked everything here - it is the primary loop, public is set to true and I did a var dump, revealing that thus. As I mentioned above, it's only post_type is set to array('post','recipes') that it doesn't work. If I just call 'recipes' it works beautifully! I'm so confused! |
|
May 21 |
awarded | Editor |
|
May 21 |
comment |
Unable to display multiple post types in same query (WPML WP_Query) 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 |
revised |
Unable to display multiple post types in same query (WPML WP_Query) added 131 characters in body |
|
May 21 |
comment |
Unable to display multiple post types in same query (WPML WP_Query) 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 |
asked | Unable to display multiple post types in same query (WPML WP_Query) |