Sorry, this is a little vague but it should get you started. It seems like you need to:
- Check if the page has a parent
<?php if($post->post_parent) ?>
- Something like
<?php echo $post->post_parent; ?>
- Something like
<a href="https://wordpress.stackexchange.com/questions/113592/<?php the_permalink() ?>"><?php the_title(); ?></a>
- Something like the code below, then apply your solution for turning it into a dropdown.
There is more info here: http://codex.wordpress.org/Function_Reference/wp_list_pages
<?php
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) { ?>
<ul>
<?php echo $children; ?>
</ul>
<?php } ?>
Related Posts:
- Change posts list Breadcrumb
- Breadcrumbs with custom post type without plugin
- How-to get the get_category_parents() breadcrumbs trail without link on last item
- Custom walker to generate menu with integrated breadcrumb dropdowns
- How to Create a Parent of Pages But have it not link yet keep the URL Path?
- How to create a breadcrumb for pages?
- why breadcrumb has wrong orders?
- problem after update 4.9.6 [closed]
- Breadcrumb ordered wrongly
- Adding a Span Class in a Function
- Breadcrumb not showing custom category post type
- WordPress breadcrumb depth
- How to add Schema markup to breadcrumbs
- how to add custom breadcrumbs in wordpress?
- Can’t get parent page id
- Using the_title() and fetching the parent page’s title and slug to construct breadcrumbs
- Customising Breadcrumb NavXT [closed]
- breadcrumb not showing proper page structure
- Show only one level in breadcrumbs
- Codex Function Problems When There is an Apostrophe in the Category Name
- Replace category with page name in breadcrumb-navxt plugin
- delete a page from a breadcrumb trail
- How to add a page to the Yoast breadcrumbs
- Making breadcrumb with wp_nav_menu
- Using WordPress to make a “Product Search” type navigation drilldown
- Show current navigation path from menu
- Breadcrumbs showing Parent and Child Pages
- Slugs as breadcrumbs for Pages
- How to display parent category name and link for custom breadcrumb
- If on term-page -> get the current term?
- Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
- Custom Taxonomy Breadcrumb Navigation
- recommended breadcrumb plugins with possibility for hiding “Home” link [closed]
- Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles
- how to automatically generate hierarchical menus from hierarchy of pages?
- How to add category to the permalink and breadcrumb?
- How to determine if custom post type showing on archive templates
- How to obtain page breadcrumb based on menu structure only?
- How to output hierarchical taxonomy path, with only the deepest term assigned?
- Custom post type not displayed in breadcrumbs on archive page
- breadcrumbs & rel=”nofollow”
- is_shop, is_home, is_front_page doesn’t work for woocommerce
- Link posts to pages for breadcrumbs
- Breadcrumb NavXT plugin – exclude ‘home’ page
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- Woocommerce Porto Theme Hide Selected Categroy for Breadcrumbs
- How do I hide or remove ‘Category’ from wordpress breadcrumbs
- Changing title & add Breadcrumbs
- Some archive by year page return 404
- WordPress display breadcrumbs using Yoast plugin [closed]
- How can I change the functionality of breadcrumbs?
- Error after woocommerce update from 2.6 to 3.5 [closed]
- woocommerce breadcrumbs in theme [closed]
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Breadcrumb Not Linking to the Correct Custom Post Type Index Page(s)
- Removing Parent Page URL While Keeping the Navigation Intact
- Multiple category selection in post, shows less important category in breadcrumb
- BbPress Register Page in Breadcrumbs
- How to Modify Breadcrumb Page Names for Specific Pages? [closed]
- Adding a line of text to php code
- WordPress SEO plugin (by Yoast) and BuddyPress [closed]
- Breadcrumbs stop working on a specific template file
- Direct link to post when multiple categories are selected
- Using breadcrumb to return from single-page to list
- Hide breadcrumbs on specific pages
- Adding Separator to Breadcrumbs
- Can I prioritize post categories for choice for breadcrumb trail?
- Problem retrieving informations and displaying desired structure with custom post type and taxonomy
- Breadcrumbs: Search result not displayed when static page is on top
- Link custom post type to parent page and show in slug / breadcrumb
- How to add woocommerce products header title in woocommerce_breadcrumb hook to function.php
- Error in Fetching Custom Post Type parent Category URL (slug)
- Title and URL Error in Breadcrumb Navigation for Custom Post Types
- How to translate breadcrumbs
- Post template with breadcrumb needs to show page navigated from
- How to replace home link anchor text with image
- Custom post type archive false is not compatible with breadcrumbs
- Category name as page title
- Breadcrumbs and Categories
- If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
- Get the terms of a post
- Breadcrumb that shows multiple custom taxonomies
- Modify sub_menu function to show pages below a specifically set page
- Modify php code to pass a page id as a parameter in order to create a breadcrumb
- If post type = forum then breadcrumbs Home > Forums
- Page/Post path in Search Results
- filter single_cat_title avoiding the breadcrumbs
- Breadcrumbs for Single Image page
- Home not showing in yoast breadcrumb
- Taxonomy term breadcrumb; how?
- WordPress NavXT plugin localization
- How to retrieve taxonomy terms of the current custom post?
- how do I create a breadcrumb to work with multiple custom taxonomies
- Only show sub-category
- woocommerce breadcrumb only in cart and checkout pages
- custom post type breadcrumb error when has_archive = false
- How to add breadcrumbs to any WordPress theme
- Make a PHP file with a function
- Stop breadcrumb function retrieving custom post type template name
- how to put breadcrumb under Title [closed]