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
- Quick edit screen customization
- Mini-Site Strategy
- How to remove Filters from post admin page?
- 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?
- Setting up custom post type archives in WP3.1? Any luck?
- How to show more posts on an archive page?
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- How to let custom post type posts show in standard post archive (like in homepage)?
- Highlight nav menu terms
- How to register custom post types in a plugin?
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Issue with pre_get_posts on custom post type archive pages
- Add html to cpt main page / admin edit.php
- just can’t get date-based archives per post-type to work
- What’s the difference between same wp functions get_posts(); functions in different form?
- how to check if custom post type column already exists?
- Can I list a custom post type within another custom post type in the admin area?
- How to Filter custom post type by taxonomy?
- Custom archive page for CPT UI
- How to display custom post in archive section of the wordpress page?
- Filter Posts from the Main Query
- Send a conditional email notification when a custom field value changes in Post Type
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- sortable columns for multiple custom post types not working
- Custom Post Type Archive Pagination
- Archive Template being used instead of Category Template for Custom Post Type
- Post type Echo code is repeating on homepage
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Custom post type category link redirecting to 404 page
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- How to upload an image to a custom post type
- when looping through custom post data not appearing
- Getting a Post ID to show its content in a Popup
- Disable Sidebar on certain pages
- How to reset HTML filter input fields on CPT list page?
- Stop Custom post type from being searched via URL
- How to avoid hardcoded text in a custom page template?
- WordPress custom field images not getting inserted into array
- How to use get_sidebar in plugin folder?
- Filter page ID outside the loop and order
- Paginate yearly archives for a custom post type