displaying particular categories q and a on particular pages
-
Hello,
I want to display different categories on different pages, for example a list of question for category ‘blue’ on a page named blue, a category named ‘green’ on a page named green and a category ‘red’ on a page named red. From what I have read in the forum I dont think your plugin allows this.
However I did find this code,
<?php $questions = new WP_Query( 'post_type=dwqa-question&posts_per_page=5'); if ( $questions->have_posts() ) : while ( $questions->have_posts() ) : $questions->the_post(); get_template_part( 'dwqa-templates/content-question' ); endwhile; endif; wp_reset_postdata(); ?>
could you please help me edit this so I can display category blue questions on the blue page, green on the green page etc. Could you also tell me where I need to put this code?
Many Thanks,great plugin by the way!!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘displaying particular categories q and a on particular pages’ is closed to new replies.