Gday, I am trying to get wordpress to only output posts from a certain category on the front page of my new website. Does anyone know how to adjust the below code to achieve this?
Yup – its all in here :)
More specifically, you’re looking for the query_posts function:
Thank you….but unfortunately my php skills are a little scarce.
Currently the code on my wordpress index.php is -
< ?php while (have_posts()) : the_post(); ?>
< ?php endif; ?>
And from the wordpress Codex I have established that I need to implement:
However I’m clueless as to how to include this into my existing code… :?:
Any further help would be appreciated :)
Just change the line that opens up the loop to this:
Fantastic! Thank you Chris :)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".