Two separate blogs (from separate categories) on o
-
Hi,
I want to set up a site that show two different categories within WordPress in different columns on the home page, and I’m trying to make sure I can do it fairly easily before choosing WordPress for this site and diving in.
For example, the left column would show the posts from the “general” category, and the right column would show the posts from the “stupidstuff” category.
I found this page in the wiki: https://wiki.www.ads-software.com/index.php/show-one-category-on-front-page which is how to hardcode the front page to a specific category.
I’m guessing if I set $cat to one category in index.php, I can then run through the foreach $posts loop (the main loop) in one column, and then in the next column’s code, reset $cat to something else and do that foreach loop again.
Will that work? Does $posts have every post in the DB by that point, or is it limited to a specific category from some earlier function? Now that I think about it some more, the latter makes more sense. If that is the case, can I repopulate $posts with a different category later in the page?
Or, is there a better way to do this?
Thanks,
Hersch
- The topic ‘Two separate blogs (from separate categories) on o’ is closed to new replies.