What you’re doing there is registering a new post type called “post_type” change this name to something else – such as:
register_post_type( 'fast_news', $args );
See if that works for you?
Related Posts:
- Get the ID of the latest post
- tag.php doesn’t work with tags on a custom post type post?
- List most recent image uploads, but only for specific custom post type
- If featured image doesn’t exist, show post content
- Getting a div content of a post in wordpress?
- Rename a current used post type
- Include custom post types in categories widget
- add_meta_box: Datepicker like the one for postdate?
- Getting taxonomy terms used by custom post type
- Custom field losing p tags on display
- Categories not working as expected with custom post type
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- Calculating Bayesian average for custom post type
- How to customize admin posts based on the user who is logged in
- Custom post type – how can I make it a sub-url of another page?
- Merge multiple custom post types in a single archive template
- Problem adding column to WC Subscription [closed]
- apply filters only to specific post listing without check the url parameters
- register_post_type exclude_from_search argument not working
- query posts and custom post type with meta key
- Adding `supports` array to WordPress custom post type
- URI returns a post when it should return a 404
- Twenty Fifteen: Adjacent posts by menu_order [duplicate]
- Displaying a form for filtering in custom post type listing
- How to make custom post type feed title = taxonomies?
- Change meta box when the page’s template is changed
- Custom Post Type Loop throws 500 error when used in widget
- How can I update the permalink everywhere for a custom post type?
- custom admin screen or setting screen for a custom post type [duplicate]
- Define new user capability for custom post types?
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Featured image overlay when changing post status
- Programmatically rewriting slug through functions.php but returns 404
- limit value taxonomy based on previous taxonomy value wordpress
- Problem: wp_query outputs all images on site
- pre_get_posts for custom page builder meta box
- Pre-styling post content to display in lightbox
- How to assign permissions for a CPT to a user
- Using POST method in meta box, no results
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Global $post shows null in some of my custom post types archive pages
- Get Post Types in admin
- Custom post type editor uses old tinyMCE
- Create metaboxes based on custom post type
- custom post type and custom taxonomy
- Custom post type as child of page
- Conditional Tags for specific category of custom posts
- populate array with posts
- Transferring data to the end of a transaction with the Shopp Plugin
- Listing custom post types on archive page with array
- Get custom post type categories to show up in menus
- Custom Type add Transitions
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- get_post_permalink() and custom permalink rewriting
- Building a Portfolio and need some direction
- Custom post type – how to name file?
- Checking whether post is deleted or saved in edit_post
- HM CMB: Post Select Field for CPT ID
- Why is my custom post query shortcode only showing 1 post?
- WordPress custom taxonomy page
- Pages not appearing?
- How great custom post type can be?
- How do I disable the built-in editor and automatically configure the properties of new pages?
- Saving a Custom Post Type with a Meta Box results in a “Updating Failed” error
- WP_Insert_Post creating duplicate posts when logged in
- count & sum the value of custom field of the author post in dynamic posts
- Custom post using elementor not displaying correctly
- Same custom post type with different ACF
- cpt not display inside nav menu
- Move to trash custom post type post after ACF Date Picker date is older than today
- Display custom posts, ordered by most commented, without duplicates
- Create Post Types from a XML url (Real Estate website)
- Custom Post type doesn’t appear in search results
- Issue with CPT posts within WP REST API showing as []
- Unsure what page hierarchy to use with CPT UI to show on front end
- New entries to custom post type produce 404 on single view
- WordPress post type for single page (without posts list)
- Enforce all custom posts have specific custom fields
- creating a custom post template
- Adding CPT changes entire layout of my site except for the archive of that CPT
- page not found for example.com/custom-post-name
- How to show Y number of custom posts after every X normal posts?
- Why is my custom post type shown in the wrong place?
- Display Custom Post if custom field is marked
- predefined custom field on registration page
- multiple custom post type category selection search
- Cannot modify a registered custom post type rewrite slug
- List a custom post type’s posts ordered by nested custom taxonomy
- listing custom post type category page
- Inserting random posts
- Sorting custom post types by category?
- Allow authors to create article image
- Select Category as Page Parent
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- How to delete unnecessary custom post types in the UI
- Adding custom theme template to custom post type [duplicate]
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- Issue displaying multiple TinyMCE editors with WPAlchemy
- using jetbooking for multiple custom post types