[Plugin: Posts 2 Posts] Problem with a get_sidebar()
-
Hello Scribu,
On that page, you’ll see a training page for an online video subscription service.
I’ve got a problem with the sidebar but not with the core of the page.
The structure is the following:
training <-> chapters
chapters <-> lessons
lessons <-> videosSo in the core of the page, I used your “further nesting” methodology and it works pretty well. I can retrieve information on any level.
But on the sidebar, there is a subtlety that I don’t get.
I am interested to build a menu with a list of :
– chapters
— lessonsI can retrieve one of the other but never both in cascade.
When I try a WP_Query with every “training custom post” it works … but it list every training . This is the menu on “Further nesting part 2:” or “Further nesting part 1:“
Here is the full code of the page that is saved a sidebar-training.php and call like that inside the code in the main content of the single-training.php page. (it is not called just after the main content and before the footer().
<?php get_sidebar('formation'); ?>
Thank you very much for your time.
If you need more information or more details on the main page, don’t hesitate.
F
- The topic ‘[Plugin: Posts 2 Posts] Problem with a get_sidebar()’ is closed to new replies.