Tagged Questions
0
votes
1answer
56 views
Conditional function for excluding first image from content, not working
I have the following function:
function remove_images( $content ) {
if( ( is_category() || is_archive() || is_home() ) && has_term( 'MyCat', 'category', $postID ) ) {
$postOutput ...
0
votes
1answer
49 views
Stop WordPress from showing images on non post pages
With regards to how WP displays "preview" text on the home page, category page etc for each post, how do you stop it from including images in this section.
I'm not talking about the featured image ...
0
votes
0answers
50 views
How to prevent Images embedded in Posts from being removed from home page? [closed]
I have images inserted directly into my post content.
On the blog home page, no images appear per post. The image tags have vanished from the code. Only the text from the post appears. On the single ...
1
vote
1answer
429 views
add data-attribute to all images inside the_content()
I wonder if it's possible to add a filter to all images inside the_content() to create the following image pattern for all images …
<img class="digest" src="smallest-file.jpg" ...
0
votes
2answers
1k views
How to access & display images from a post without textual content ( and vice versa) according to best wordpress practices
Looking to create a customized single.php for my posts. In one column I'd like to display all images added through the add media function (inserted into post). In the next column all other content ...