This may be a dumb question, but it's 1AM and i'm swamped. Is there a way to show only posts from a certain category on the homepage. I have a category for "featured" that scrolls in a slideshow, but I want to show posts from the "latest" category as the first five on the homepage. Otherwise, the 5 things scrolling through my slideshow are the same 5 things showing as the most recent posts...at least for now...
yes you can do it. latest 5 posts from all categories: latest 5 posts from the category X (3 is the category ID.). and show latest 5 posts from all categories, except the category X (8 is the category ID of category X) and you need some css.
Ok - if I post my index.php will you tell me where to put it inside index.php? It has a slideshow at the top where I want to use a featured category and a news category for the latest 3 posts.
There is the index.php - I would really like to have the posts from the news category cycle through on the homepage and keep the other posts under their categories on pages OR just keep the homepage from displaying a certain category...preferably the second option.
please try this one. change the red "1" with your news category id(enter the Categories part in wordpress admin panel. check the url of the news category.you will see the category ID at the end of the url). if you want to show more than 5 posts from the category, change the red "5". you can not use the navigation(pagenavi) with this code.
What code can I insert to change the archives sidebar to show posts from "news" categories instead? Currently it's All I know is to change 'Recent Posts' to 'Recent News', but I'm not sure about actual code to get posts from a certain category...
I've almost got the website where I want it - I just need to change the archives to show the 5 most recent posts in "news" category and set the homepage to show recents posts from all categories except "news" and "featured".