Get content based on the parent slug.
-
I am currently getting content based on this code using the name of the parent page like this
<?php wp_list_bookmarks('&order=DESC&orderby=id&title_li=&categorize=0&category_name='.$parent_title = get_the_title($post->post_parent).'&before=&after=<br />'); ?> </div>Can anyone help me go about doing the same thing but using the parent slug instead of the title?
Thank you.
The topic ‘Get content based on the parent slug.’ is closed to new replies.