Skip to main content
formating
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

This should work to query multiple post types:

query_posts('post_type[]=post&post_type[]=page&post_type[]=event');

query_posts('post_type[]=post&post_type[]=page&post_type[]=event');

You can even test it directly into your browser, www.yoursite.com/?post_type[]=post&post_type[]=page

example.com/?post_type[]=post&post_type[]=page

This should work to query multiple post types:

query_posts('post_type[]=post&post_type[]=page&post_type[]=event');

You can even test it directly into your browser, www.yoursite.com/?post_type[]=post&post_type[]=page

This should work to query multiple post types:

query_posts('post_type[]=post&post_type[]=page&post_type[]=event');

You can even test it directly into your browser,

example.com/?post_type[]=post&post_type[]=page
Source Link
Rune
  • 11
  • 1

This should work to query multiple post types:

query_posts('post_type[]=post&post_type[]=page&post_type[]=event');

You can even test it directly into your browser, www.yoursite.com/?post_type[]=post&post_type[]=page