Add this code to your functions.php
function mdc_remove_img($content) {
$content = preg_replace("/<img[^>]+\>/i", "", $content);
return $content;
}
add_filter( 'the_content', 'mdc_remove_img' );
Related Posts:
- Newer/Older posts links display same posts on every page
- How do I write this SQL statement for Posts written in last 24 hours?
- How to show related posts by category or custom post type?
- How to create posts (not post template) to be displayed on projects page?
- IF statement in a do_shortcode
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- get_template_part for custom post type content not working
- Loop on front-page.php
- How to get all posts except for one post from a certain custom post type?
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- I would like to have different styles for my posts based on the content of each post
- List custom taxonomy specific to one custom post type
- Shortcode not working with post counter
- Conditional for a Single Post That Belongs to a Category?
- How to Make infinite loop of post
- WP_Query with custom post type ID
- display posts of custom post type with custom taxonomy
- Get post format
- Custom wordpress loop
- displaying content of custom post type
- Posts are not rendering perfectly [closed]
- Display post from custom post type
- Use post in multiple places on a page with multiple posts
- The loop does not show users
- How to fetch posts that are stored in the different table than (default) wp_posts?
- If/Else child list for Custom Post Type single template within loop?
- SEARCH QUERIES – REVERSE OUTPUT
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- Display title of all custom posts from same taxonomy term on a custom post template
- Custom post Query and WordPress Post Query Clash
- Only show current category post
- How To Loop Through list with Custom Post Types
- How to create content automatically when a post is published?
- Turn post into simple slideshow
- Pulling in a particular post into a single page based on the post id passed into the code
- Styling first post using Advanced Custom Fields
- Linking Two Post Types
- Get Custom post with ID
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Problem excluding category from get_next_post
- WP_Query to loop a Custom Field, Custom Post Types do not show
- Posts in Multiple Columns and Rows with one single loop
- Alphabetical sorting of custom post type – one letter per page
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- How to show posts from multiple post types in a single loop? And display them separately on the same template
- Quickest way to get last or oldest post date – WP Query
- ‘category__and’ for custom taxonomy?
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- How to use custom fields to enable sticky posts on custom post types?
- Show Two custom Post type and their posts on category page
- Custom post type and body_class: Remove “blog” class
- How to insert content from another Custom Post type into Post?
- get_attached_media() on author page not working
- Getting posts under the custom post type ui category
- Calculate all custom field values in the post loop
- Checking if Post Title is Unique as Loop Criteria
- JS innerhtml changing style when using AJAX
- What to and how to proceed with CPT to make DB small and efficient?
- A custom post within a custom post
- get_the_title() is returning results from previous loop
- wordpress remove views from action links in a custom post
- How can I group posts by months and years?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- 3 random images from custom post type, each in a div with a diffrent class
- Displaying multiple post types on home page
- Shortcode leaves no space for other elements?
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Query to get child pages of current page and display it in action hook
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Add Class according to the order of appearance
- Custom Post type registering as page post type
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Enable comments for post when comments meta box removed
- Permalinks for single-[custom-post-types] not working
- using the loop in custom meta is messing up ‘add new’ post type
- How to: Add a publish immediately button when editing custom WordPress posts?
- Checking for custom field in admin pages
- Custom archive page for custom taxonomy and pagination issue
- Best way to fix bad count on All | Mine | Published
- open custom post type in popup window instead of page
- Permalink for specific post type
- Pagination for a cpt filtered with a category
- How to add custom PHP code in post header?
- How to manage a dynamic multi-level page hierearchy system?
- custum post inner page not taking single-gallery.php? it redirecting to archive page
- Strange behavior on WP_query
- How to check if meta box value is false for all posts then do something based on that
- Calling specific page with wp query
- How to get Last post Id of custom post type in wordpress
- display news with pictures 3 small and one large (loop)
- Display a post count from a custom metabox selection
- Pagination not working with custom loop
- Custom Post Type post not appearing
- Display multiple custom post type lists on homepage – multiple loops
- Loop doesn’t work in single-product.php page but works at normal page
- Get Posts From A Certain Post Type In An ID Array
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj