PHP in a page
-
Hi all,
I wanted to see if I can set a page to display post of a category. I found an addon to run php code. I think my php coding is still lacking. I put in the if statement below and it not working correctly. Can somebody take a quick look and let me know what I have to mod. In the example below I want to show all the test2 category. Thanks
<?php if (have_posts(in_category(‘test2’))) : while (have_posts(in_category(‘test2’))) : the_post(in_category(‘test2’)); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP in a page’ is closed to new replies.