Link to a page where the issue can be seen: hidden link
I expected to see:
the menu with the only linking button to child page
Instead, I got:
all the items as it seems the above mentioned function doesn't work anymore
The problem is in the new API tool toolset_get_related_post_types which I think is not the right function
In this page http;//www.araldicacivica.it/stemmi/stato/germania and http;//www.araldicacivica.it/stemmi/stato/italia
there is the word empty as an example because i used this function
add_shortcode( 'child-landgermania', 'child_landgermania_func' );
function child_landgermania_func( $atts ) {
$child_posts = toolset_get_related_post_types('child', 'land-germania');
if (!empty($child_posts))
{ echo 'empty'; }
}
So the problem is in the function. Not after.
What I want is that in the page italy I do not want show the menu Lander Germania (because there is not the child types lander)
Instead in the second page I want the menu which indicates me that germany has landers as child types.
The related posty typed is general but I want in this specific case. n early version was so simple. Now I don't know which function is the best to achieve this.