Get normal an custom posts in one stream
-
Hello,
I would like to get certain normal posts together with certain custom posts. Currently i get them via:
<?php $args = array( 'category_name' => 'work, travel', 'posts_per_page' => 100 ); $query = new WP_Query($args); ?>
AND
<?php $args = array( 'post_type' => array(LEXICON, EVENT), ); $custom_query = new WP_Query($args); ?>
seperately. What is the best way to get one stream with the categories work, travel as well as the categories EVENT, LEXICON merged together?
Thank you in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get normal an custom posts in one stream’ is closed to new replies.