1. Can be used with all post types; such as pages, documents, media, and even wikis.
2. The same appearance on the home or front page as on the post page.
3.Sub-sub pages and so on and so forth.
The plugin could be used with post types other than post, and I would like to see that.
https://www.ads-software.com/plugins/sgr-nextpage-titles/
]]>Here’s the link to the development site: https://jamesddunn.com/hydro/products/laboratory-furniture/ (this is an example of what is occurring – notice all the sub-sub pages have the triangle beside them).
Thanks for any suggestions.
https://www.ads-software.com/plugins/genesis-subpage-sidebar/
]]>Any ides on how to fix this, so the extra space is not added?
Page 1
– page a
– page b
– page c
— page c1
— page c2 (Active) empty ul displays under and adds space
— page c3
]]>URL – https://173.201.94.194 –
[Login details moderated. Never post login details on a public forum]
This is the code that drives my menu.. HELP!
[Code moderated as per the Forum Rules. Please use the pastebin]
]]>I think I know roughly how you would do this in plain English, but my PHP isn’t that strong.
Problem
I need to define a variable for templating reasons that if you are on a page, any of its sub-pages, or any of those sub-page’s sub-pages.. and so on.
Following the codec example I have thus far got:
<?php
if (is_page('20') || $post->post_parent=="20") {
$sidebar_call = 1;
} elseif (is_page('34') || $post->post_parent=="34") {
$sidebar_call = 2;
} elseif (is_page('11') || $post->post_parent=="11") {
$sidebar_call = 3;
} elseif (is_page('12') || $post->post_parent=="12") {
$sidebar_call = 4;
} else {
$sidebar_call = "default";
}
?>
As I expected, this works fine on any of the above pages or their sub-pages, but when you get to a sub-sub-page the variable is assigned the default value.
I can imagine that I need to create an array (as can now be done in 2.5), but am not sure how to go about it.
I know there is a function for get_children, but I haven’t found any documentation on how that works (and whether it gets children of the children!).
My English version of the code would be:
<?php
if (is_page('20') || (is_page(get an array of all children and sub children of page 20...) {
$sidebar_call = 1;
} elseif (is_page('34') || (is_page(get an array of all children and sub children of page 34...) {
$sidebar_call = 2;
} etc...
?>
However I’m not sure exactly how to make this happen….
Any ideas?
]]>