trouble with WP as CMS – query variables
-
First off, I’m a bit of a WP noob, but my PHP and CSS skills are pretty good. I have done some googling for this issue but no luck finding exactly what I’m looking for.
I have a site set up with WordPress acting as a CMS for the majority of the content. My issue is that I have a custom post category consisting of 10-15 posts, all of which I want to display on a page (using a page template) as a navigation. I will be using a thumbnail image and a title from the post for this nav. When clicked, I would like to display the full contents of that single post, but also retain the navigation.
I have created a loop that queries the post category and populates a navigation, but I am having trouble with creating the body of this page (which again, is made up of one single post of the same category). I have tried passing the post id from the navigation to a second loop, which would query the database for only the post with that id, but it’s not working.
Am I making this too complicated? Perhaps there is an easier way to achieve this? I am developing this locally, so I cannot yet post a link, but I would very much appreciate some wisdom here. Thanks in advance!
- The topic ‘trouble with WP as CMS – query variables’ is closed to new replies.