Simple problem for someone who knows PHP and WordPress… $wp_query->query(
So I’m pretty sure someone who knows PHP and WordPress can solve this for me quite quickly…hopefully 🙂
So I have a custom post type in wordpress and I’m trying to display a list of posts that are in that custom type and custom post taxonomy.
This is what I have so far…
<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=5&post_type=custom-post-name'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
Hope someone can help me with this.
Much appreciated, Terry
- The topic ‘Simple problem for someone who knows PHP and WordPress… $wp_query->query(’ is closed to new replies.