can i use php when writing a post or page?
-
I want to use template tags on a page to show only posts from one category. It seems that template tags are the best way to do this. However, can I post the PHP code directly in the editor?
The blog is set up on a page at site.com/blog
I already used PHP template tags to exclude the blog category from the main page so that’s fine.This is the code so far
<?php
query_posts(’cat=6′, ’showposts=10′);
?>I probably got the formatting wrong since I’m not a programmer. Also, how can I set up a back button so people can go through older posts?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘can i use php when writing a post or page?’ is closed to new replies.