There are a couple of solutions:
- Create
archive-vendors.php
, that displays whatever output you want (including static content or a secondary query, for example), and omitting the default loop (CPT archive index query). - Set
has_archive
tofalse
in yourregister_post_type()
call, then create a static page named Vendors, that you can use to display whatever content you want (including via a custom page template).
Related Posts:
- Marking future dated post as published
- Custom Taxonomy as checkbox or dropdown
- how to group custom post types
- Page as child in custom post type slug?
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- How to quickly switch custom post type singular template?
- Post metadata deletes itself
- Get latest 4 post on a custom post filtered by category
- How can you use custom types/taxonomies? [closed]
- Get child terms of current term of the current post
- Allow duplicate slugs for posts on Custom post type in different categories/taxonomy?
- Assign category to front end post
- Remove Post Page “View Post” Link
- Turn query string to sub page
- WordPress Template Hierarchy
- Taxonomy structure of Sport site
- How can I add a column in the wp_list_table of the admin area?
- Custom Post Type with static page for archive
- Trigger “unsaved changes” dialog for custom post meta changes
- How does the $post_type global variable work?
- how to check if custom post type exists in wordpress
- Custom post type custom taxonomy archive page name
- Archive slider for CPT
- Unable to retrieve any posts of CPT in wp-admin
- Custom Page that comes with preloaded content for the user
- Automatically update custom field in all posts of a custom post type
- Custom post type not showing in admin menu
- Custom taxonomy in custom post RSS feed
- Custom post type templating problem
- How to set up a post word limit for a custom post type
- Custom Taxonomies not appearing in Admin
- How to create custom post type like Page
- Notice: Undefined index: error and understanding wordpress
- Can taxonomies of custom post types be used with category actions?
- Add custom field to Posts and sort by it
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Custom post type as home page with custom url
- post tag texonomy rename getting error
- Creating a Custom Post Type
- Fixed values for same post translations
- How to give all CPT a folder automatically based on their slug
- How to make front end form only accept certain values
- WordPress custom taxonomy template not working
- Can a shortcode included in post content add styles to the ?
- Category.php template for custom posts
- Remove permalink for custom post type
- help
- Category archive in with conjunction with custom post type is empty
- Custom post doesn’t show featured image
- Create field of Custom Post Types
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- ACF for custom post type archive pages: which hook to use?
- Pagination hitting 404 page on /page/4
- Custom Meta Box returns no HTML
- Post Type Support Array Not Working
- Save Metabox Custom Field Value
- Multiple Loops on a Page Without Duplicates
- get_post_types not working properly in admin
- How to hide a custom field from admin?
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Creating custom post type and taxonomy archives and pretty URLs
- How do I add multiple post types to this query?
- Using custom post type as front home page pagination not working
- Migrate Custom Post Type with Custom Fields data and parent child order
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- How to create review point system for CPTs (many-to-many relationship)
- Is it possible to get the specific content on the search page?
- Search for custom field input of a custom post type in ajax live search
- Register custom_post_type from static function
- WordPress custom post type as homepage with homepage url
- Custom post type single page returns 404
- How to select meta key in custom database query
- localize_script or rest api
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Add content to wordpress edit.php page
- Search result based on URL
- Show posts under a selected custom taxonomy term
- Widget area for individual posts (custom post type)?
- Wrong post ID in meta box callback
- Linking Taxonomies
- Custom Post Type with Subfolder in Custom Theme
- Link two different post using there post_id in post meta
- How do I extract the contents of a CPT’s custom field for all posts?
- Get number of posts by a user (draft, pending review & published)
- How can I generate a list of post-type specific categories?
- Publish post and create additional posts with same content
- New WP_Query not isolating custom post types on front-page template
- Excert ( the_excerpt(); ) Not working properly
- Keep same archive.php for post from archive?
- Use one template for different custom post types with the same markup
- Events with multiple event dates + permalink for each date
- After rewriting post type’s URL, the number of queries has increased dramatically
- Custom field totals
- Pagination not working on homepage
- How to query custom post then display sections by meta value
- Prevent users from changing post status
- How do I paginate a custom post type listing on a custom template page?
- A to Z list for custom post types
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Filter page ID outside the loop and order