After spending time debugging export.php, I found that we have to register post_format taxonomy for our custom post type.
register_taxonomy( 'post_format', 'portfolio', array(
'public' => true,
'hierarchical' => false,
'labels' => array(
'name' => _x( 'Format', 'post format' ),
'singular_name' => _x( 'Format', 'post format' ),
),
'query_var' => true,
'rewrite' => $rewrite['post_format'],
'show_ui' => false,
'_builtin' => true,
'show_in_nav_menus' => current_theme_supports( 'post-formats' ),
) );
Easy as that!
Related Posts:
- Create a clone from one WordPress site to another in a few minutes
- Two-way synchronizing of a post type among multisite blogs
- Exporting Post type from one theme and importing it to another theme
- How to set a default format for a custom post type?
- How do I add a new custom post format?
- Importing old blog with regular posts into new custom post types
- Custom Post Formats for Custom Post Types
- Custom post types vs post formats : future-proofing – is one less “future proof” than another?
- Different post format options per custom post type?
- How can I add dropdown widget/box to admin post page?
- Resource Issues: Importing external data into custom post type and keeping records up to date
- Custom post types not imported properly
- WordPress import not importing custom taxonomy
- Beginner question: Accessing functions.php through admin web interface in order to import custom post types?
- Strip shortcode from specific post types (formats)
- Export Custom Post Type posts with all Custom Fields and Custom Texonomy associated with it
- Apply post formats to a specific post type only?
- Export entries and multiple custom field meta to .csv?
- Is possible to add post-formats to custom-post-type?
- WordPress As A Shared Items Collection
- WP All Import – Using Xpath to set a select value
- Registering different Post Formats for Blog Post and CPT
- URL of a custom post type’s post format archive?
- ACF Values Don’t Show After Import Unless I Edit/Update Post
- Exporting individual custom post type post for deployment?
- How to handle a CSV with 65,000+ rows and make it searchable?
- How to import files to individual posts of a custom type
- How can I add a filter to a particular post format?
- Is it possible to filter the display name for post formats for display in the Formats meta box?
- Understanding Post Formats/Custom Post types Etc
- Not able to export large no. of posts in csv
- Create a page by importing data from an XML file ( On clicking a button inside admin options page)
- Convert comma separated list to serialized array to import as post meta
- How to export custom post type with ACF to individual file with automation?
- Post format or Type for List Type Posts
- Getting Twitter Content on My Blog
- Use different post formats on different post types
- How does one go about converting custom post type to post format?
- Migrate Custom Post Type with Custom Fields data and parent child order
- Invalid content when I try to import custom post type from the old template wordpress
- Can’t Export Custom Post Types With Export Tool In A Custom Theme
- WordPress shortcode to pull product post data
- How to return/export only data showing on screen in custom post type view all screen
- Custom post types imported from another wordpress site, not showing on frontend unless I go in and reupdate them
- Exporting CPT from dev site and import into live site?
- Importing URLs of Audio Enclosures
- Imported Content Doesnt Show Up On Frontend
- Archive of post format for Custom Post Type
- Creating connections programmatically with common fields on CPT’s
- Why is my custom post type shown in the wrong place?
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- cannot export data from CPT UI (books)
- Can a taxonomy of a custom post type be called ‘category’?
- show posts under custom post type with same autj
- Show custom post type on post category page doesn’t work / breaks navigation
- Store custom post type with JSON content
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- On archive.php show loop for child categories if they exist or posts if they don’t, on custom post type
- Display page and custom post title inside shortcode
- Custom post archive with search, is_search() is false?
- Creating post custom field text area
- Trying to set up a range filter for related custom post types
- How to debug a 404 error on pages whose content is perfectly displayed when I explore it?
- CPT Archive Pagination – Page not found
- querying to custom field over ACF REST API
- How to print different informations for different post types inside The Loop?
- Fatal Error WordPress Custom Post Type UI + WPML
- How to I add count of custom posts listed in a post as a prefix to its title
- Create settings page to enable or disable CPT
- From form submission values – dynamically update CPT “has_archive” slug and custom taxonomy “rewrite” slug value
- trying to display custom post type with custom taxonomy value by shortcode can’t works [closed]
- Query order by meta value force specific tag first
- Export Posts Without Categories In An XML File
- Multiple posts selection [closed]
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type
- Custom post types not showing in the admin menu on production, but shows locally
- How to make a non-public post on wordpress approval?
- Archive page for Custom Post Type taxonomy?
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- Tracking Total Pageviews By Post Type In Google Analytics
- Custom post type is_singular condtional not working when managing sidebar display
- Allowing null vairiable
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- How can I show second most recent post in sidebar, if most recent post is open in the browser?
- Why custom search engine only searches in post titles of custom posts?
- Custom Post & Taxonomy rewrite break regular post & page
- Looking for advice how to approach building a WordPress plug-in
- How to add custom settings to the menu of custom post types?
- Custom post type split title, setup permalink accordingly
- WPNavi pagination links not working on custom pages
- Send email on creation of custom post type and use get_post_meta()
- Order Wp Query by earliest of 3 dates meta query
- Can I add a wordpress page using the slug for a CPT rewrite
- Rewrite Rule for custom post type link with or without taxonomy terms
- YARRP related posts with custom post type and wp-graphql
- Delete old thumbnail when updating new
- How to add to taxonomies to a post type
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Custom plugin contact form connecting to mailchimp API
- Filter page ID outside the loop and order