There seemed to be two easy-to-solve problems:
- The function was being declared twice without checking if it already existed.
- After solving that issue, i needed to post a “post” post to refresh the feed, but after that custom post types appeared in the feed without further refreshing nor publishing standard posts.
Related Posts:
- How to remove CPT comment feed from head?
- Modifying date filter on admin page for custom post type to link to custom field
- Custom query to filter posts that have current post as a taxonomy [closed]
- creat filter with wp_query
- Query filter by value in meta_value array
- Pagination not working with custom loop
- single-{$post_type}-{slug}.php for custom post types
- Row actions for custom post types?
- Add Custom Fields to Custom Post Type RSS
- remove custom post type permalink
- Saving Taxonomy Terms
- Filter by custom field in custom post type on admin page
- How can I remove the “Add New” button in my custom post type?
- Media library – Limit images to custom post type
- Get the ID of the latest post
- Sort search results by post type
- How to order posts of a custom post type by date DESC in dashboard Admin?
- How to remove Filters from post admin page?
- Sort custom post type list table by display name of a user id stored as post meta value
- How to use a custom post type as front page?
- Custom sortable columns ordered by meta-value?
- How to Make a Separate RSS Feed for Each Custom Post Type
- How to change “Draft” string for status of custom post type to “Unavailable”?
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- Random post, once per day
- get attachments for all posts of particular post type
- How can I filter posts by post_parent in the admin?
- Rewrite custom post type rss feed links
- How do I filter the excerpt metabox description in admin?
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Query custom post type by custom field
- Filter for “get_post_type_archive_link()”
- How to correctly get post type in a the_title filter
- How to add a CSS class to every image in a Custom Post Type
- Best way to filter featured image text for a custom post type?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- Add Custom Post Type to Current Query
- How can I generate a RSS feed based on a custom WP_Query?
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Filter by custom Field for Custom post type Admin Listing
- Most efficient way to search for values from CPT in Post content
- WP Admin default view mode for Custom Post Type
- post_type_link filter causes 404 on the CPT page it’s used on
- Remove wpautop from all posts/pages except my custom post type
- feed links for custom post type pages
- Remove date and category filters when editing custom post types
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- Exclude custom function content from certain pages
- Title_save_pre – Simple problem that u know for sure
- Filter get_categories() for taxonomy term in WordPress
- Debug output during filter execution doesn’t work
- Custom post types – RSS lastBuildDate issue
- SQL to update custom post taxonomies
- Ajax filter with custom taxonomies
- Query multiple taxonomy in Custom Post Type
- Filter posts with ajax form and checkboxes
- Multiple post types in archives (filter?)
- Querying Posts by Taxonomy From Alternate Network Site
- Image size filtering in Media uploader according to custom post type
- Custom Search | Wrong output & question
- How to change the quantity of feeds in custom post type?
- Get the most popular terms for a custom post type
- Query by 2 values of a repeater ACF field
- disable /feed/ for custom post type
- Unable to filter on field on edit.php page
- show posts only on homepage but using custom post type and taxonomy for query posts via url
- wp_query and comment_parent – select only posts with top level comments
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- WP insert post PHP function dynamically generated Custom Fields
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Highlight nav menu terms
- Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
- Want to filter only parent post in admin area
- Query posts between two dates (custom meta keys) CMB2
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Include different loop templates in search query
- Used with meta_query in query_posts works slowly
- register_post_type – rewrite / feeds, what’s it for?
- Hooking into wp_export filter for custom post type [closed]
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Inserting data into `post meta` table?
- Custom Post Row Actions
- How can we disable a custom post type archive page but enable its feed?
- Custom Select Query with Custom Post Types
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- How can I add a column in the wp_list_table of the admin area?
- Archive filter disappears on no results?
- How to filter the description of a custom post type
- Automatically adding meta data to posts or multiple query help
- Disable feeds for specific custom post types
- Having trouble with custom date field for CPT query (WordPress)
- Remove “Get Shortlink” button in admin of custom post type
- Add $more_link_text parameter to the_excerpt()
- Filter home_url for custom post type
- How to get Custom Post ID by adding filter to child theme’s function