- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
November 2, 2009 at 4:57 am #26631andrewsParticipant
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?
Code:
Many thanks.
November 2, 2009 at 10:07 am #66131Rob MacKayParticipantNovember 2, 2009 at 1:35 pm #66137TheDocMemberMore specifically, you’re looking for the query_posts function:
November 4, 2009 at 6:51 am #66221andrewsParticipantThank you….but unfortunately my php skills are a little scarce.
Currently the code on my wordpress index.php is –
Code:And from the wordpress Codex I have established that I need to implement:
Code:query_posts(‘cat=1’);However I’m clueless as to how to include this into my existing code… :?:
Any further help would be appreciated :)
November 4, 2009 at 9:45 am #66238Chris CoyierKeymasterJust change the line that opens up the loop to this:
Code:November 4, 2009 at 5:40 pm #66251andrewsParticipantFantastic! Thank you Chris :)
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)- The forum ‘Back End’ is closed to new topics and replies.