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
- single-{$post_type}-{slug}.php for custom post types
- Saving Taxonomy Terms
- Get the ID of the latest post
- Sort custom post type list table by display name of a user id stored as post meta value
- Rewrite custom post type rss feed links
- 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
- post_type_link filter causes 404 on the CPT page it’s used on
- Debug output during filter execution doesn’t work
- Filter posts with ajax form and checkboxes
- Unable to filter on field on edit.php page
- Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”
- Query posts between two dates (custom meta keys) CMB2
- Used with meta_query in query_posts works slowly
- Custom Select Query with Custom Post Types
- Archive filter disappears on no results?
- How to get Custom Post ID by adding filter to child theme’s function
- How do I set the link in the Custom Post Type admin menu?
- WP_Query search posts by custom post type and custom taxonomy
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to filter out post type meta?
- How to check if “is single” page
- Make a function to run only for CPTs
- WordPress Orderby Numeric Value Not Working
- Pre_get_posts filter overwrites all search functionality
- Add post_type to index.php
- How to detect filter in URL in Category page?
- Append date to custom post type url slug
- Custom post type redirected to homepage – how to debug
- Making certain categories of CPT not publicly queryable
- Querying both pages and posts
- How to use has_archive but disable feed per post type?
- WordPress sort search results by custom order
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- Specific query for custom post type
- Display post content with respect to its title?
- search suggest – filter post type
- First custom field value (out of several) displayed twice after query
- Prioritize posts in query by meta keys?
- What is best way to prevent access to Custom Post Types unless authenticated when the post type has an archive and is publicly queryable?
- Is it possible to have a custom post type with feed but without the archive?
- WP_Query orderby and tax_query
- Different Ways to Query Custom Post Types?
- How does the filter post_updated_messages work?
- Create new custom post and post category of same name
- Number of posts in the archive
- Custom rewrite to fetch feed data
- Query custom post type based on post id and custom field value
- Graphql: Unable to query (where:{author}) for custom post type
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- REST filters only firing when I have a param set
- How to fetch custom post types with its full data on wordpress?
- Getting custom post types to properly display alphabetically
- Filtering the_content, but still need to display the unfiltered content inside filter
- wp-includes does not contain a feed template
- All in one calendar custom post type query doesnt work as expected
- custom filtering admin columns
- Ajax Post Filter | Split Taxonomy Into minPrice & maxPrice
- Change search query in wordpress custom post type
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Does this archive template part look like its making too many calls to the db?
- Meta query and compare “!=” not working as expected
- Dynamic page for nav items used as filters
- How select query is generated in a Custom Post Type?
- Post Click Redirect to Custom URL instead of Single Post Page
- How to hide sub fields in a field group and also the entire field group if the answer selected is “no”
- Output all terms slugs for a loop filter
- Linking posts together with Advanced Custom Fields “both ways”
- Apply pre_get_posts to specific custom post type in the admin area
- Filter between Custom Posts depending on meta_value
- WordPress feed only shows first page of category
- Show first posts with custom field not empty and order all by title
- Dropdown switching subcategories portfolio
- Filter wp_dropdown_categories Per Post Type
- Sorting on Taxonomy in archive page
- Filter custom post type by tags
- Custom Search Template for Custom Post Types
- Query child posts on parents single.php?
- WordPress can only query up to 766
- Allow admin to determine the order of queries?
- Code in custom widget queries all posts, when it should only query the current post
- How to add post type in masonry posts elementory widget
- Changing the RSS feed titles not working
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- add_filter > posts_where works partially
- Simple Share Buttons Add Plugin and Custom Post Type
- Get Posts ordered by a date custom meta field
- Filter page ID outside the loop and order
- Paginate yearly archives for a custom post type
- Load posts via AJAX without draft status
- Custom Filtering date with newsletter
- coloring row’s background based on custom field value