![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Dear forum,
the title of this thread is a little short, it should be: "How to display the latest posts of a specific category in the sidebar within a specific sub menu area only" I have to create this structure: Code:
page 1 - category 1 - sub-page 1.1 - sub-page 1.2 page 2 - category 2 - sub-page 2.1 - sub-page 2.2 page 3 - category 3 - sub-page 3.1 - sub-page 3.2 and so on
I think about using the plugins "genesis featured widget amplified" for showing the posts of a specific category, and "widget logic" for displaying the widget only when I need. A quick test involving a PHP variable generated in functions.php, and using it with widget logic, works perfect. Remains the question how can I know that I am currently on page 1, OR on cat 1 OR any posts in cat 1, OR sub-page 1.1 OR on sub-page 1.2? These items are grouped within a custom menu. Or in other words: using which algo can I set the value of my PHP variable in functions.php? I would need e.g. a function like get_ancestors_in_custom_menu() returning an arry of IDs, which does not exist. What could I do? Is there a solution by far better than mine? |
| Tags |
| custom menu, featured post amplified widget, sub menu, sub nav, widget logic |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Show latest posts for the whole site on homepagebottom area | pressdeamon | General Discussion | 3 | 12-22-2009 05:25 AM |
| Front Page Only Display Latest Post (Or Specific Post) | cuberds | General Discussion | 1 | 11-17-2009 09:58 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us