Really Need Your Help! Wordpress Question Running 2 Sections? + Rep Given.

contract

::\\\ Motivªtion ///::
Dec 28, 2011
1,918
33
0
California, USA
My biggest site to date, and need a little help here.. I have the homepage/inner/cats all setup fine. But now I need to add another section that acts as a category page.. Kind of like a Pinterest add-on section for my site. Now this is all possible I'm told, but those posts will still show up on the homepage for the Pinterest-like section.. Is there any way to prevent that?

I thought about making those posts from 2004 by changing the date so they don't show up, and only appear on the last page.. But I'm trying to avoid that. Any other ideas?

Is it possible to install another wordpress site (2 on a single domain) just for that section? Would that work? Again I don't want the homepage to show up for that add-on though. Duplicate content problem..

If there was a way to click "hide post from homepage" that would be incredible.. So I can keep the pinterest stuff on that area, and the real long article stuff on the homepage as normal.
 


Open functions.php

Add the following to the file..

PHP:
function preventCats($query) {
  if($query->is_home() && $query->is_main_query()) {
    $query->set('cat', '-4'); // 4 is the Pinterest category ID
  }
}
add_action('pre_get_posts', 'preventCats');
 
You can just install another wordpress install on your site. It's the easiest way I've found to do it.

The only hassle comes if you update the menu / logo / design of your main site, then you have to remember to go back and update the second WP install but it's not too much of an issue.

If you want to check out on a site, PM me and I'll flick you my url.
 
You can just install another wordpress install on your site. It's the easiest way I've found to do it.

The only hassle comes if you update the menu / logo / design of your main site, then you have to remember to go back and update the second WP install but it's not too much of an issue.

If you want to check out on a site, PM me and I'll flick you my url.

How on earth is adding a second install easier than adding 4 lines of code to your site?