Results 1 to 4 of 4

Thread: Exclude Blog Category From Main Blog

  1. #1
    Thread Starter
    Member samanders's Avatar
    Join Date
    Jan 2011
    Location
    London UK
    Posts
    99
    Thanks
    17
    Thanked 11 Times in 9 Posts

    Exclude Blog Category From Main Blog

    What i would like to do is have a second blog that runs off a different blog category but have the main blog exclude this new category as the content is different.

    I have created a new blog template and this displays the new content correctly so i think to achieve what i want i just need to add to the loop code but i am not sure which loop i should edit...

    The code i think i need is

    Code:
     <?php query_posts($query_string . '&cat=-3'); ?>
     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
     <div class="post">
    This i think should exclude category number 3 but which file do i need to edit? would this be the main index.php or the tpl-blog.php

    Thanks in advance

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    38,931
    Thanks
    161
    Thanked 3,205 Times in 3,076 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Amateur artifactivate's Avatar
    Join Date
    Sep 2011
    Location
    United States
    Posts
    13
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Amateur artifactivate's Avatar
    Join Date
    Sep 2011
    Location
    United States
    Posts
    13
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Blog Excerpts on main blog page
    By tinnud in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 24th, 2011, 07:10 AM
  2. Putting a blog sub-category in the main Classipress menu.
    By ejikoala in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: October 30th, 2010, 01:03 PM
  3. Changing 'Blog' Category Name for Blog Posts
    By saltspring in forum Help Using ClassiPress
    Replies: 1
    Last Post: October 9th, 2010, 12:57 AM
  4. Recents Ads Sidebar Exclude Blog posts
    By essej88 in forum Help Using ClassiPress
    Replies: 1
    Last Post: June 5th, 2010, 01:32 AM
  5. How can you use the Blog as the Main page.
    By tnich in forum Help Using ClassiPress
    Replies: 9
    Last Post: May 7th, 2010, 11:18 AM