Try changing the priority, there could be other filters being applied afterwards, i.e:
add_filter( 'the_content', 'eri_course_archive_content_filter', 999 );
If that doesn’t work, check that the_content()
is actually being called in your archive template, because for example:
echo get_the_content();
will not apply any filters set on the_content
Related Posts:
- How can I remove the “Add New” button in my custom post type?
- Filter for “get_post_type_archive_link()”
- Date archives for custom post type
- is_singular won’t call my functions?
- Ajax filter with custom taxonomies
- Filter posts with ajax form and checkboxes
- Multiple post types in archives (filter?)
- Unable to filter on field on edit.php page
- Row actions not showing? Why?
- How to append element after thumbnail
- How do I set the link in the Custom Post Type admin menu?
- Dynamic Custom Post Type Plugin
- How to filter out post type meta?
- Get rewrite slug of custom post type in template
- Admin notice not displaying
- Custom query to filter posts that have current post as a taxonomy [closed]
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- get the custom post type title/name
- How to customize a permalink (URL) structure?
- Filtering WP_Query
- Custom post type – get_day_link()
- Use custom metabox to update automatically a post after a given date
- creat filter with wp_query
- Custom post type archive page blank
- search suggest – filter post type
- Problems wp_insert_post and save_posts filter
- Redirect to another page using contact form 7? [closed]
- wordpress remove views from action links in a custom post
- Show current custom taxonomy
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- How exclude or skip post type with get_next_post_link
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Validate Custom Post Type fields
- Modify a plugin function output from another plugin
- Menu’s breaking, now showing all page links on site
- How can I increase the post count for custom post types only?
- WordPress sitemap with Custom Post Types
- Custom post type page with parameter
- Is possible register two archive pages for single custom post type?
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- How to show the post which checkbox is not selected
- Is it possible to get the specific content on the search page?
- Plugin Development using classes – Public & Private Callbacks
- Dynamic page for nav items used as filters
- Do not show child pages within a file page
- Tell wordpress to show a single page instead of an archive page
- Having issue on Loading Meta Data From CSV to CPT
- Insert custom taxonomy into category query
- Exclude Custom Post Type from shared Custom Taxonomy
- using ACF datepicker to filter posts on a page
- Stop header code from showing in category page?
- is_singular won’t call my functions?
- How do I filter a custom post type loop by a field?
- How to dynamically register custom post type
- Custom post type template not loading from plugin
- How can I add a column in the wp_list_table of the admin area?
- Archive filter disappears on no results?
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- Custom Post Type with static page for archive
- How to filter the description of a custom post type
- How to add multiple featured image in meta box in post editor?
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- How do you output custom code between posts in the loop?
- Show ACF field from custom taxonomy and display on the single template
- How to allow “Add New” capability of CPT when links to its UI are placed as a submenu?
- Change message given when deleting post from custom post type
- How to add notification in the sidebar of the administration panel when a Custom post type is created? [duplicate]
- Hierarchical or Non-hierarchical Custom Post Type in Real World Example
- Display children and grandchildren of a custom post type
- Category and post tag archives do not include posts from custom post type
- Slug for standard post post_type
- how to set default value for checkbox in wordpress
- How do I include drag-and-drop in a plugin?
- Remove “Get Shortlink” button in admin of custom post type
- wordpress custom post type remove duplicate menu item
- Add $more_link_text parameter to the_excerpt()
- How could I create a ‘private comments’ section on a custom post type?
- Using WPAlchemy metabox values in another metabox
- Filter home_url for custom post type
- How to get Custom Post ID by adding filter to child theme’s function
- is_page_template not working as expected
- Add Content Exclusively to a Custom Post Type Feed
- List terms from Custom Taxonomy
- Custom Post Type get_post_type_archive_link( $post_type ) returns false
- Custom Taxonomy breaking pages permalinks
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Get post type from taxonomy or category page
- Category page only displaying the posts from a custom type
- How to List Thumbnails based on Custom Categories
- Custom-post-type-archive: posts sorted/filtered by year?
- How to list custom post types?
- WP_Query search posts by custom post type and custom taxonomy
- Adding Meta Boxes while Registering a Post Type in a Class
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to have the right design for a custom post type without accessing themes
- Order WordPress Custom Taxonomy Pages & Pagination Not Working