what’s the add action at the bottom doing? It’s not required for setting up CPTs, just the setup bit you have running on init…. I believe that is what’s throwing the error
I have to make it an answer. It was a suggestion, but if it worked for you, I’ll make my comment an answer, then you can accept it!
Related Posts:
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Custom post status not working
- Search that will look in custom field, post title and post content
- Load custom posts with same tag as page
- How can I fix those issues generated by the Themecheck plugin
- Date archives for custom post type
- If featured image doesn’t exist, show post content
- How can I add dropdown widget/box to admin post page?
- Meta Query “IN” doesn’t work with ACF checkbox filter
- How do I redirect all 404 errors of a specific post type to another URL?
- Filter posts with ajax form and checkboxes
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- Get custom post type REST API not working
- How to save the checked boxes?
- How to get only one category of custom post type?
- Error after deleting Custom Post Type with a function (no trash used)
- Append taxonomy terms as class names in markup?
- Change message given when deleting post from custom post type
- wordpress custom post type remove duplicate menu item
- Using WPAlchemy metabox values in another metabox
- WP_Query search posts by custom post type and custom taxonomy
- Display custom field of specific post where post title matches variable
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- GravityForm: Populate Dropdown with custom post type [closed]
- How to output wordpress custom tags separated by comma?
- Show Different Header on a Specific Post ID
- Admin notice not displaying
- Dynamic page outside WordPress
- Custom query to filter posts that have current post as a taxonomy [closed]
- get_posts of Custom Post Type AND Custom Taxonomy
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Custom Post Type Loop throws 500 error when used in widget
- Received nothing after executing AJAX post function
- Replace text in post from cvs
- Get parent categories of custom post type
- I need to add endpoint for wordpress categories
- Trouble with CPT Child 404
- Can one create multiple Custom Post Types with a for loop?
- Categorize custom post type
- How to add custom field to view-edit post type page
- Hide a widget inside a div on specific type of post
- How to import a custom MySQL DB table into a WordPress custom post type
- Static apple-app-site-association file with wordpress
- Function causing the loop display posting more (empty)
- Foreach inside shortcode not working as planned
- Displaying custom field according to date
- Add additional field to custom post_type
- Set featured image to archive.php
- Get term name without a foreach loop
- custom post for slider
- Using wp_query to modify the loop in index.php for a CPT
- Get custom post type categories to show up in menus
- How exclude or skip post type with get_next_post_link
- widget_posts_args not using the number of posts in widget
- Query not work for current taxonomy
- Create short URL with auto 301 redirect
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Undefined $post in wp_query
- Is it possible to use array_walk() to append terms to an array of posts?
- get_post_types() can’t get some of my post type
- Creating shortcode id for custom post types
- List latest post out of 2 custom post types
- Different column width in 2 rows with bootstrap and custom post types-different classes needed
- Menu’s breaking, now showing all page links on site
- Front end create custom post types
- Fetch data from two custom post types and create multidimensional array for output to html table
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- How to get the custom post data using post id in WordPress?
- set object terms after some some time of published post – functions.php
- See if the email exists or not
- Why is my custom post content only viewable when signed into WordPress?
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- How to add specific terms in a custom post type?
- Limit custom post type to the authors only on front-end!
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- programmatically generated custom post type is created more than once
- Dynamic page for nav items used as filters
- How to use posts as tabs in a custom page?
- Accessing download link from the loop with WP Download Manager Pro
- Create posts inside CPT post
- ACF field check value of field on all other articles
- Taxonomies are not showing in the category dropdown
- How to use POST method using custom wordpress button?
- Combine multiple separate lists into one
- “A post type mismatch has been detected” Error when updating custom post
- Custom Taxonomy – fields
- WordPress trying to query two custom types to get child from the parent
- Print post category name from a custom post type wordpress
- CPT post doesnt shows tags and category on backend admin page
- How to make sure, that only the selected post is changing?
- Error [Column ‘post_title’ cannot be null] when title is disabled for Custom post type
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Why isn’t my custom post type using the corresponding custom post template?
- Get month and day from a Date Picker custom field
- Show Custom Post Type taxonomy term that matches custom field
- Select Menu for Custom post Type does not save
- is_singular won’t call my functions?
- Inserting two categories
- Comments are not working on Custom Post Type