The problem is most likely this part:
'capability_type' => array('newsletter','newsletters'),
Try to remove it or adjust it accordingly.
You should also prefix your functions to avoid possible name collisions. So replace:
function post_type() {
to e.g.
function arcath_post_type() {
and similarly:
add_action('init', 'arcath_post_types');
Related Posts:
- Use register_post_type() to modify an existing post type
- Custom post type pagination 404 fix?
- Per Post Type Revision Numbers
- Get list of all registered post types slugs
- WP_Query ignores post_type in category view
- How to get only posts, pages and custom post types in WordPress
- How do I implement custom fields without using any plugins?
- custom post types don’t appear in RSS
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- Registered Post Type Isn’t Showing in Admin Menu
- Multiple post type queries (with specific arguments for each)
- How to retrieve a custom post’s capability?
- Use get_post_types to query only custom posts types
- WP_Query | ‘post_type’ doesn’t work
- child of post type (custom)
- How do I set default meta value by post type?
- Limit amount of posts made within a custom taxonomy
- Incorrect post_type in url of taxonomy term
- How to define which register_post_status goes to which register_post_type?
- Is it possible to filter the display name for post formats for display in the Formats meta box?
- get_the_post_thumbnail_url(‘full’) returns empty from custom post type
- single-{post_type}.php not working
- How to Set Taxonomy Object Description?
- Show only public custom posts in home page
- Can I change my post type to anything and my site still work?
- post_parent in custom post type
- Custom filter for main search: how to exclude specific post_type from search results
- get_post_types – exclude multiple post types by name
- Remove taxonomies using register_post_type_args
- Custom post type and standard post not displaying or working
- post_type internal ID?
- Dynamic pages for linked categories and content
- How to copy a custom field from the user’s CPT to the user’s normal posts
- get_post_types not working properly in admin
- Add filter to Admin list for all custom post types by their custom taxonomies
- Post Type => Any conundrum
- How to hide list from custom post type
- Why is my custom post content only viewable when signed into WordPress?
- Custom Post Type Single Page is not working
- Get all post types that supports tags
- custom post type single page not found after aotumatic publish By the author’s robot
- Custom post type single with custom URL structure
- How to mix 2 kinds of post types
- Change Custom Post Type to Post + Category
- Shortcode in excerpt
- How can i order my posts by post type?
- Permanent Custom Post Type
- Custom post type post_type_link gives “page not found” on any other custom post type
- How to set a default CPT template and create post attribute´s display rules?
- Post types showing tables…Can I do that?
- custom post permalink
- do action inside a class is not working
- Updated from 3.8 to 4.2 and all post types changed to “post”
- Pulling in Related Posts based on Post Type array
- How would I get a list of posts from a custom post type
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- How to add post type in masonry posts elementory widget
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- custom taxonomy not return in the code
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method
- How to show Y number of custom posts after every X normal posts?
- create a mostly read only CPT
- Hide/Show only specific categories in wp-admin new-post.php
- Post type archive page not working
- Unable to filter on field on edit.php page
- Help with hierarchical custom taxonomies and permalinks…almost there
- How to get only one category of custom post type?
- Adding posts of custom type into the main feed
- Create separate template for shared custom taxonomy with shared terms
- Changing the header on post listing page in admin area
- Get random custom posts from a custom post type
- Display custom post type taxonomy and month
- Pull Two Different Post Types into Different HTML Containers on the Same Page
- Why my CPT does not appear on the dashboard menu when i activate the plugin?
- custom post type Search returns No Results in admin panel
- Genesis filterable portfolio isotope [closed]
- Custom post type and taxonomy – show related posts
- CPT post count is 0 for the authors in the User list
- Can’t remove front from permalinks for custom taxonomy category page
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Why isn’t my custom post type archive URL translating?
- How to make custom taxonomy into drop down select in a custom metabox
- disable quickedit for specific custom post type user role
- Wp Query with multiple custom tag(taxonomy) by get the terms
- Pagination doesnt work in custom post type
- Custom REST endpoint not working to retrieve single posts (“rest_no_route”)
- Why is wp api returning old acf values?
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- Add class attribute in Custom Post Type
- Custom WordPress theme not displaying posts from category
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- update flamingo_inbound post type after insert
- wp_insert_post() creates duplicates with ‘post_status’ => ‘publish’
- Can I rename the description field in a custom post type?
- Custom user roles
- WordPress feed only shows first page of category
- Custom Info Box at end of posts?
- Modifying and Displaying URL’s in a Post Template using parse_url