When you’re viewing a Custom Post Type Archive, your archive-documents.php
template will be used. In your case this is the URL /documents/
.
When you’re viewing a taxonomy term, you’re viewing a Custom Taxonomy Archive, not a Custom Post Type Archive. If you haven’t created one specific to your taxonomy, then archive.php
(or index.php
, if archive.php
doesn’t exist) will be used.
You want to create a template named taxonomy-types.php
to display the posts in your custom taxonomy.
See the Template Hierarchy for more info.
Related Posts:
- How to display data in archive page?
- Redirect to custom post if custom archive page has just one result?
- Remove Categories / Tags From Admin Menu
- Setting Custom Sort Order of Posts within a Category
- has_archive=false on the default post type
- Custom permalink structure only for default posts
- Exclude drafts in all() view of edit.php
- Is this the best (and only) option to style CSS for a given post type?
- Sort post by attributes ‘order’
- Post Format Archive template name for theme folder?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- Add default content to post (for specific category)
- Pagination not working on Custom Page Template
- Must permalinks always point to single post pages?
- Display most recent post in category instead of archive?
- Display custom post types by date field
- How to hook a function only when I need to delete permanently a post?
- get_post_type_archive_link(‘post’) returns current category archive
- display order of connections
- same template for multiple custom post type single
- How to place HTML below the title of the (custom) post overview
- How to get a nofication when post submitted
- Is there any WordPress alternative to Book module of Drupal?
- .current-menu-item class on custom post type children pages – again?
- Display page content AFTER a loop of posts
- Run a function when post is deleted?
- Display posts from #6 to #20 on archive page
- How to start with post number x?
- How can I create custom button in post.php
- how to replace embedded “full” sized images within a post with the “large” ones
- Downgrade user from role that allows post creation
- Best way of deletion of old posts [closed]
- Animated gif for a thumbs
- Sidebar links for different pages
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- Yearly archive page for future year
- I am unable to publish/update post
- Delete post by giving its link
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- How to make classes for posts?
- Custom Post Archive Page not working
- Adding buttons to Add New Post and Add New Page
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- WordPress custom Query for Posts in Category display posts multiple times
- ERROR: Your feed is invalid (after update WP4.7) in custom types
- Editing the default page to show all posts, rather than most recent ones
- Automatically add date to the auto generation of post slug
- How could I change my Permalink from blog to custom structure? [closed]
- WP Admin register taxonomy and post type performance
- Add a custom meta box in the post options that loads some html code in the header
- Static posts page with home.php
- Custom post types related to same custom post type?
- relating business and products with custom taxonomy?
- WordPress Query Posts From Category Post on Static Page
- Edit multiple custom post types while saving a new or edited post
- Create a custom posts page
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- register_post_type permalink
- Custom Post Limit for homepage only without plugin?
- Change default post style to columns
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Adding a custom post type meta field to rss
- Find out in which kind of archive am I
- Help with listing current users submitted custom post type in template file
- Delete post from admin but not from database
- Custom Select Query – Selecting the Year?
- Deleting old posts
- How To Use Custom Tax of a Post Type
- What would causes search to return incorrect results?
- Permalink Short code showing unnecessary link text inside the loop
- search form for custom fields
- blog post not accesible on click [closed]
- Some custom post types did not return an object
- Display Post from Custom Post Type with Shortcode
- Tag for custom post type
- Modified core/image rendering not showing in posts – only on pages
- Not display an image of category of custom post
- Manual Scheduler For Custom Post Type
- Prevent Archive URLs
- Dev and prod on the same database- dev version active for IOS
- How to delete/customize imported demo content from a theme or add my own?
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Multiple Custom Post Type loop logic
- How to show content of specific item on the same page?
- How to list all names and descriptions of a custom taxonomy
- How can I have the posts from one word press blog show on the presentation page of another word press site
- My posts section for logged in user
- Show a Category Specific Info Box
- Make a custom URL and link to custom Template
- Special Query: Title, Terms, Content – %LIKE%
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- Display all posts from selected month
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- How to have more post in a page than in your home page
- how to show all post with its contents
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields