The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [SOLVED] Multiple Page Posts Re: [SOLVED] Multiple Page Posts


Most certainly. You’ll want to make sure to assign each post with the proper category. Then, depending on how your templates are set up, you can have a page show only certain categories.

Let’s say you have 3 pages: Hockey, Cake, and Money.

If they all use the same template (eg, page.php), then you’ll need to do something like:

if page Hockey then > show posts from category "hockey";
if page Cake then > show pasts from category "cake";

This is a slightly more complicated piece of code than what is below, so let me know which one you need before I attempt at explaining! haha

If the are using different templates (eg, hockey.php, cake.php, money.php), then you simply need to run one single loop with a query like so (‘5’ is the category id, replace that number):


(that was from the snippets section, btw)