Need to display specific posts from one category
-
Hi there everyone. I am new at wordpress and hope anyone can help…
I have one category (catID=12) with 10 posts in it. What I want to do is to print the 5 recent posts in the same page (let’s say in my homepage), but in different positions of the page. What i am doing is:$category_number = '12'; $same_cat_posts = get_posts("numberposts=5&category={$category_number}");
This will print the 5 posts I need, but all of them in the same part of the website – my question: Is there anyway that helps me get, for example “Post one”, “post two” etc. as different variables and after that print the post where I want? (maybe any kind of array or so on?)
Thanx a lot in advance 🙂
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Need to display specific posts from one category’ is closed to new replies.