robives
Member
Posted 2 years ago #
I'm new to WordPress so don't know what it is capable of. I'm in the process of designing a theme for a new site.
On the main page I'm wanting to put posts in the main body of the page, in one side bar I want a 'What's New' section and in the other side bar some review snippets which will be constantly updated.
My question is can I use Categories so that as I add different types of posts they are displayed in the appropriate part of the page.
In effect, I'll be creating three different blogs and using Categories to divide them up. Will this work?
Thanks
can I use Categories so that as I add different types of posts they are displayed in the appropriate part of the page.
That depends entirely upon your coding skills. Anything is theoretically possible providing you have the right skills as your disposal.
robives
Member
Posted 2 years ago #
Thanks, so within The Loop can I just use PHP to pull out the appropriate category posts and display them as I choose? I'm still a bit vague about The Loop. Does it encompass the whole of the page? Will I be able to use it to display three or more groups of posts across a single page?
so within The Loop can I just use PHP to pull out the appropriate category posts and display them as I choose?
Yes.. well, sort of. You actually use something like query_posts just before the Loop to define exactly what what types of posts etc you want the Loop to display.
I'm still a bit vague about The Loop. Does it encompass the whole of the page?
It handles the display of the main content in a given page, yes.
http://codex.wordpress.org/The_Loop
Will I be able to use it to display three or more groups of posts across a single page?
Yes - in that you can use query_posts to define what posts you want to display and the Loop will output them. How they are displayed in the page then depends upon your XHTML/CSS skills.
robives
Member
Posted 2 years ago #
Thanks for your help!
The query_posts looks particularly useful!
If I have three separate categories displayed on a page in different parts of the page would I need to run The Loop three time? If so, how is this done?
You can look at running multiple Loops:
http://codex.wordpress.org/The_Loop#Multiple_Loops
Or you can look at using get_posts if you just want to run a couple of simple extra Loops alongside the main Loop.
robives
Member
Posted 2 years ago #
Thanks for your help. That should keep me going for a while :-)