I want to have a list of all post titles that link to the single post, but that list of post titles will be on the single post page. Kind of like a Menu. I’ve done this by Querying post Titles and Querying Post content on the same page. The problem I am having is that the menu (list of post titles) does not reflect the current Post. This is not helpful when I want to use CSS to highlight the Post Title.
I figure this is easy with Pages, but I am using a Custom Post Type for this. There will be around 15-20 Posts and I don’t want to deal with using a Nav Menu.
Any ideas on how to do this?
- The topic ‘Highlight item in list of posts based on current post’ is closed to new replies.