How to maintain sub navigation on a Wordpress page when on a post detail page
-
I have a wordpress website that is using a custom page template that queries posts from a particular category.This page template has a sub nav(s) in its left column thats generated based on what top level page has been selected. All this works fine and the page template displays all the correct posts.The problem is the post items displayed in this page template link through to the post detail page (single.php) as this is the post detail page im not sure how to keep the relevant left column sub nav in place that relates to the section they where in? suggestions appreciated
-
Answer:
Can you provide a link to your site?
toocan at Ask.Metafilter.Com Visit the source
Other answers
If I'm understanding, you have multiple subnav configurations, and you want Wordpress to figure out which one is appropriate to display on a given single post page. If all the posts that currently would share a subnav menu have a category or tag in common, this would be pretty easy to code (just query the tag and have that generate the subnav). If the subnav is dependent on which page the user CAME from rather than a static thing tied to each post, then it's a bit trickier . . . you could possibly pass a variable in the link (it would look something like "www.example.com?id=5" with the id # corresponding to the subnav option), then query that variable to generate the subnav.
Fifi Firefox
Related Q & A:
- How to make reverse proxy and a check page?Best solution by Stack Overflow
- How do you delete a 360 page when the yahoo account has already been deleted?Best solution by Yahoo! Answers
- Why do I get a blank page when downloading?Best solution by Yahoo! Answers
- How do you get rid of a 360 page?Best solution by Yahoo! Answers
- Why do I get a blank page when I go on the Internet?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.