I have already searched the forum, but I could not find a topic that matched my questions entirely. So I am sorry, but I have to create a new post. 😉
Here is my problem:
I have a static “pages”-site in wordpress that will have some mostly static contents for things I find interesting and I want to write about (/pages/).
Let’s say I’d like to create a page “music” which is a subpage of the “pages”-site (e.g. /pages/music).
First of all, there will be a “contents”-table that has links to all topics for that subpage (local anchors).
Then, under the topic title “Recent Post(s)”, I would like to integrate one or more recent posts of a specific category from my blog, which would be “music” in this example. They should exactly look the same way as in the blog (like, not cut to just the topic title, i.e. full text and maybe the comments, too). The user should then be able to click the topic which then directs him right to ALL the posts of the category (which is not so difficult with a link like e.g. “/category/music” and should not be the problem here).
Then follows some more static content, like “My favorite bands”, “My favorite lyrics” etc.
I want to create that page right in the wordpress page editor.
Now here is the problem:
- I already know the “loop”-function. But how do I integrate it so that it will do what is mentioned above, and how do I put php-code in the page when I use the wordpress editor?
- Do I have to create a new template for the subpage, or can I just use the one I always use for “pages”?
Thank you very much in advance!
- The topic ‘Integrate recent post(s) of a category in a static page’ is closed to new replies.