Excluding categories in a template
-
I guess for many of you this is fairly simple, but I’ve tried and read everything now without luck. Any help greatly appreciated.
I want to remove a post category from my blog and magazine templates (template-blog.php & template-magazine.php).
I guess I change this bit in some way:
<?php $paged = ( !empty($paged) ) ? $paged : $page; query_posts(array( 'posts_per_page' => get_option('posts_per_page'), 'paged' => $paged )); ?>But maybe I’m off the mark. Let me know if you need any code.
I’m using wpshower’s unspoken theme (http://www.treacletheatre.co.uk/portfolio).
These are the files I could edit:
Templates
404 Template
(404.php)
Archives
(archive.php)
AutoEmbed.php
(AutoEmbed.php)
Blog Page Template
(template-blog.php)
Comments
(comments.php)
Contact Form Page Template
(template-contactform.php)
FixImageMargins.php
(FixImageMargins.php)
Footer
(footer.php)
Header
(header.php)
Image Gallery Page Template
(template-gallery.php)
Magazine Page Template
(template-magazine.php)
Main Index Template
(index.php)
Page Template
(page.php)
Search Results
(search.php)
Sidebar
(sidebar.php)
Single Post
(single.php)
Sitemap Page Template
(template-sitemap.php)
Tags Page Template
(template-tags.php)
Theme Functions
(functions.php)
Wide Page Template
(template-wide.php)
advanced_post_options.php
(advanced_post_options.php)
commentform.php
(commentform.php)
home.php
(home.php)
loop-page.php
(loop-page.php)
loop-single.php
(loop-single.php)
loop.php
(loop.php)
pagination.php
(pagination.php)
shortcodes.php
(shortcodes.php)
theme_options.php
(theme_options.php)
twitter.class.php
(twitter.class.php)
widgets.php
(widgets.php)
yarpp-template-recommended.php
(yarpp-template-recommended.php)
yarpp-template-similar.php
(yarpp-template-similar.php)Styles
Stylesheet
(style.css)
ie.css
(ie.css)
The topic ‘Excluding categories in a template’ is closed to new replies.