Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Exclude categories from Posts Page http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Mon, 25 May 2015 15:25:37 +0000 Pictrix on "Exclude categories from Posts Page" http://forums.themeshaper.com/topic/exclude-categories-from-posts-page#post-12811 Fri, 04 Jun 2010 13:24:11 +0000 Pictrix 12811@http://forums.themeshaper.com/ <p>Your code worked perfectly, thanks so much!<br /> I appreciate the "read more" link too. </p> arturkim on "Exclude categories from Posts Page" http://forums.themeshaper.com/topic/exclude-categories-from-posts-page#post-12798 Fri, 04 Jun 2010 07:23:53 +0000 arturkim 12798@http://forums.themeshaper.com/ <p>Put the following code into your functions.php file and modify the category ID.</p> <p>You can read more about query_posts() in the codex: <a href="http://codex.wordpress.org/Function_Reference/query_posts" rel="nofollow">http://codex.wordpress.org/Function_Reference/query_posts</a></p> <pre><code>function childtheme_above_indexloop() { $paged = (get_query_var(&#39;paged&#39;)) ? get_query_var(&#39;paged&#39;) : 1; query_posts(&quot;cat=-3&#38;paged=$paged&quot;); } add_action(&#39;thematic_above_indexloop&#39;, &#39;childtheme_above_indexloop&#39;);</code></pre> <p>Artur Kim </p> Pictrix on "Exclude categories from Posts Page" http://forums.themeshaper.com/topic/exclude-categories-from-posts-page#post-12792 Thu, 03 Jun 2010 22:35:59 +0000 Pictrix 12792@http://forums.themeshaper.com/ <p>I'm am looking to:<br /> 1) have posts of certain categories, Press &#38; Events, appear ONLY in their own individual pages, and<br /> 2) exclude them from being displayed in the “Posts Page” without using plugins.<br /> The Front Page is set up as a static page. </p> <p>For item 1), I set up a template that displays posts from a category that has the same name as the page. (See <a href="http://mygraphicfriend.wordpress.com/2010/01/20/wordpress-create-a-page-template-that-displays-posts-from-a-category-that-has-the-same-name-as-the-page/#comment-133" rel="nofollow">http://mygraphicfriend.wordpress.com/2010/01/20/wordpress-create-a-page-template-that-displays-posts-from-a-category-that-has-the-same-name-as-the-page/#comment-133</a>).</p> <p>For item 2), I've tried different approaches discussed in this forum but I have not been able to implement them successfully, probably because the facts of the other topics were different than mine and because I'm very new to php. </p> <p>What code do I need to insert where? I'll greatly appreciate any suggestions! </p>