Title: Using page.php vs archive.php for breadcrumb
Last modified: August 13, 2020

---

# Using page.php vs archive.php for breadcrumb

 *  Resolved [xxaimsxx](https://wordpress.org/support/users/xxaimsxx/)
 * (@xxaimsxx)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/)
 * Hello,
 * I created a CPT called Room.
 * Originally I created a page called Rooms that would then do a loop and list all
   the custom post type of Room into the page. That works fine, however, when I 
   add Yoast SEO breadcrumb, when I’m in the single room page, the breadcrumb shows“
   Home / Standard King” vs “Home / Rooms / Standard King”.
 * The only way for the full breadcrumb to show up with “Rooms” in it is to use 
   the archive post. Is there a way to make it working using pages?
 * Amy

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/#post-13252653)
 * My primary question is why not make use of the archive instead of trying to display
   via page? Are you getting some other settings/features with the page version 
   that you’re not seeing with the archive?
 *  Thread Starter [xxaimsxx](https://wordpress.org/support/users/xxaimsxx/)
 * (@xxaimsxx)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/#post-13252894)
 * [@tw2113](https://wordpress.org/support/users/tw2113/)
 * Yes, the page itself has other content and that’s why I wanted to pull in the
   custom post type.
 * With the archive, I can’t pull in content w/o having to do more workarounds like
   adding shortcode variables, etc.
 * If there is no way, that’s fine, I’ll just inject the missing breadcrumb with
   jquery.
 * Thanks,
    Amy
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/#post-13252959)
 * There may be ways, but it would all be better asked to Yoast Support since it’s
   their breadcrumbs being used. I’m aware the functionality exists, but I haven’t
   really done any customization around it.
 *  Thread Starter [xxaimsxx](https://wordpress.org/support/users/xxaimsxx/)
 * (@xxaimsxx)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/#post-13253002)
 * ahhhh okies. I shall do that, thank you!
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/#post-13253092)
 * Welcome.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Using page.php vs archive.php for breadcrumb’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/using-page-php-vs-archive-php-for-breadcrumb/#post-13253092)
 * Status: resolved