If this is how it looks:
<img class="alignleft size-medium wp-image-8530" alt="..." src="#" width="413" height="275" />
<img class="alignleft size-medium wp-image-8529" alt="..." src="#" width="413" height="275" />
Then you have to put them together like this:
<img class="alignleft size-medium wp-image-8530" alt="..." src="#" width="413" height="275" /><img class="alignleft size-medium wp-image-8529" alt="..." src="#" width="413" height="275" />
Because if you do this (wpautop):
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
function wpse_wpautop_nobr( $content ) {
return wpautop( $content, false );
}
add_filter( 'the_content', 'wpse_wpautop_nobr' );
add_filter( 'the_excerpt', 'wpse_wpautop_nobr' );
you will probably break everything you have written, it’s not worth it.
Related Posts:
- How do I use element instead of tags in WordPress post content having webP support?
- Limit function to specific post category
- Load post attached images on a single page site with fancybox
- Format the Layout of Images In The Edit Post Textarea?
- How to only publish posts with image in it
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- How to detect single.php (but not single-portfolio.php)?
- How to get Images included in Post
- Find the post an attachment is attached to
- List only child categories a post is in, of a specific parent category
- Unattaching images from a post
- how to display post content without post image?
- How to wrap every image in a post with a div?
- How to change post status from publish to draft using hook in wordpress?
- Load post content into div with ajax
- Custom wp_trim_words() function not trimming right
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Add an image box besides featured image?
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- Remove inline width from figure
- Function to show random posts from a category
- Remove permalink from images when inserting into post
- Action hook for new pending posts?
- Ajax posts filter by date, comments, top views, top likes
- Copying and pasting emoji in a wordpress post
- Prepend or add an Image to the content of a Post
- Why content_arr[‘extended’] removes paragraph tags?
- Unautop / Sanitize content added to a post through a plugin
- Featured Image uploaded, attached and set but only appearing in the media library
- Errors when uploading images in WP 3.5
- Get all attachment by post excluding featured and content inside
- wp-cli post create & media import issues
- How to do set post permalinks using 6 digit random unique function?
- Get attachments for posts that belongs to a specific category
- Posting blog entries in screenplay format
- Display post x of y within category
- WordPress Automatic Filename Changer
- Issue where WP Featured Image will not display
- Redirect to another page using contact form 7? [closed]
- Remove Featured Image & All Media Uploaded to the Post
- Adding bootstrap classes to video shortcodes
- preg_replace not removed “class”
- Upload attachment from external site
- Add custom text automatically on each post
- Disable posts generated from image uploads
- Images showing up in Post Editor, but not in Published Post
- Image behind the post’s title
- Getting Whitescreen when publishing a post [closed]
- How to retrieve certain number of images from a wordpress post?
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Related Posts: Changing Function For Posts Per Page
- Show more than 200 images in one post
- Change the background of each post according to the category
- Where to insert the other site image url for our wordpress post
- Same post appears in related Posts?
- How to change the order of elements within a post?
- How to call WordPress First Image Post or else Attached Image or Default
- Regarding Posts
- All images on one line for each post
- Set Default Post as Parent Child (Nested) Relation
- how to show comments only author which send own posts in wordpress
- get category in list of posts // shortcode for custom related posts
- Alt text attributes not showing over portfolio images
- Display image gallery if more than 1 image
- How do I fix broken links to images in imported posts’ post_content?
- Set a post expiration and delete a post when expirate
- Blog featured images disappeared on my homepage
- Center crop the feature image
- I want to change the WordPress comments file
- How to wrap image tag into div for post only?
- Excluding tag Link from html tags in Post content
- ‘posts’ table should not store the absolute image path
- Changing a users posts to drafts upon role change
- How to show category image if no featured image is set?
- Get post id outside loop : Notice: Trying to get property of non-object
- How to make an image appear as a thumbnail in the blog post?
- Manipulating images inside post content
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- Post formatting bug in WordPress
- Trim excerpt to first paragraph
- im trying make a function to auto correct posts when i open the posts in the backoffice
- How can I alternate styling of images in a post? [closed]
- Theme does not respect spaces between paragraphs in pages
- Show only top 3 posts from 3 categories in order on home page
- How to get posts from network blog
- WP Gallery Image Page Issue When 2 galleries share one image
- Why can’t I see my attachment page information for an image?
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- How *not* to show the last post on the latest posts list
- How do we display a certain category type on a page while hiding all others?
- Extra Theme – Fit image inside of Featured Post Slider
- Is there any SEO impacts on unattached vs attached images for a post in WordPress?
- Insert Shortcode exactly at the end of the content
- display last post modified date in genesis child themes
- What function does the loop of displaying posts?
- WooCommerce: write featured image dimensions to custom fields in product’
- Download button under all images WordPress
- How to sort posts alphabetically based on a specific parent category