You can do this with a css solution. Pages and posts have different body_class
es, so you should be able target them with page
and post
respectively. Your CSS would look something like this:
.post img {
display: none
}
Related Posts:
- Remove images (files) that were generated when using add_image_size()
- Displaying images from external RSS feeds?
- Why should I use “Organize my uploads into month- and year-based folders” option? (Cons/Pros)
- Which action hook can I use when a featured image has been selected
- Displaying images with relative paths in the editor
- Prevent image upload unless exact size
- Fixing external image urls
- Associate an existing image with a post
- Need help building a filter to edit the output of “image_send_to_editor”
- Image resize with image url
- Preview Image Path in Admin Section
- The WordPress Gallery, Grabbing The Link and Images?
- How to upload image without post ID using the new media uploader?
- Featured Images on Front Page
- Display different header images based on current page
- How to upload images from my directory into my wordpress?
- Ability to edit image via WYSIWYG
- Why images/photos after being uploaded to my wordpress site get slightly blurry?
- Featured Image .svg height and width 1px only
- Extend core block attributes in post content
- Images are randomly deleted from server
- Rename image file by post title
- Rename media files generated during upload
- Featured image (responsive) above content is too small after update to WordPress 4.4
- How to show only posts with images?
- How Do I Delete All The Images from WordPress
- Image popup in a lightbox / overlay from the backend 3.5 admin area (plugin)
- Auto resize images after adding a new size
- Upload .doc to blog
- media sideload image and Google Content
- How can I insert an image map into a WordPress blog post?
- image in my post disappeared after I upload website to remote server
- Isolating images in uploads not used/recognised by WordPress
- Add width & height attributes to Gutenberg’s image output?
- How to filter the image embed code based on link type
- Include image in excerpt
- images not showing after transfer
- Retain the original name of the image on resize
- WordPress 4.1 header image problem
- force feed readers to pick atom version
- Creating a post image to show in a gallery
- Don’t show images inserted into content
- Replace post/page titles with an image in WordPress
- What happened to the media manger?
- Add custom metabox to media library images
- Howto use WP built in Thickbox for images?
- Remove Image Sizes in Media Settings Page
- image_resize() with blank space [closed]
- Re-ordering images in existing post in wordpress 3.6.1
- Autosort uploads in galleries by filename
- Change Image folder Locations
- “HTTP Error” or Network Error (tcp_error) when uploading image
- Hide Featured Image box – isn’t working?
- Optimising uploads folder then re-uploading?
- Using a .pdf file as a page in wordpress
- WordPress Attachments with old images
- How to display image in mail header using wp_mail()
- a: hover issue with image issues [closed]
- Redirect Image Url to a page via htaccess
- How to remove “Image Information” and “post date/author” from a media page?
- Media Editor uppercase extensions to lowercase
- How to change picture size
- Why is WordPress automatically modifying image URLs? (Tracking pixel from RSS)
- Add images to my theme with html
- Issue with LazyLoad, sometimes my pictures aren’t showing
- Why does WordPress list all image sizes in srcset even if they’re larger?
- Images going blank after a while
- Confused about image sizes generated by WordPress
- Allow users to upload and display multiple photos
- Initializing the cropper for image uploads
- How to bulk change media item’s link?
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- Custom Image Widget
- How to use default image as featured image by implement some code in function.php
- attachment_fields_to_save first parameter is null
- The image keep redirect to my previous URL after I moving my site
- Dashboard Create Gallery missing
- I cannot upload images to post or the media library in wordpress
- Change header image size
- How to disable post-thumbnail from generation?
- How to delete images from database with product
- WordPress Shortcode to display featured images only
- What is the Best way to post each pictures uploaded separately and automatically?
- Show WordPress Image Title Under Custom Portfolio Image
- Where is this folder [closed]
- Extract url from next_image_link
- Lots of attachments is causing slow load
- Image editor not working correctly
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Title image is missing ( but is not the WP 3.5 issue )
- adding images to wordpress pagination?
- Custom filename when pasting an image from clipboard
- WordPress Bootstrap dynamic carousel showing images separately not as carousel
- How do you change all images dimensions to have the same size?
- How to display image ALT under image?
- Faster image upload on mobile [closed]
- Media Library shows default image instead of image preview
- Profile Image displaying on Wrong side of WordPress Navigation Menu
- Uploading media to wordpress API with C# HttpClient
- How to add image alt attribute to the thumbnail code