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 change the case of all post titles to “Title Case”
- How to detect single.php (but not single-portfolio.php)?
- removing inline styles from wp-caption div
- Add custom Attachment Display Setting for images
- Function to execute when a post is moved to trash .
- Changing the post date and time with function
- Get current post id in functions.php
- Dynamically add id to heading tags
- How to get Images included in Post
- Find the post an attachment is attached to
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- Post slugs and images cannot have same name?
- Add existing images from Media Library in to custom gallery
- Getting the post_id in wp_ajax function
- Fatal error: Call to undefined function post_exists()
- Replace image attributes for lazyload plugin (data-src)
- How do I detach images from posts?
- How to publish a post with empty title and empty content?
- delete post also attachments
- Remove hidden formatting when user paste text from MS Word into TinyMCE
- How to call function within a page/post, to dynamically generate content?
- Download external images if post is publish
- How do I sort (order) the results from `get_children()`?
- Restrict users from editing post based on the age of the post
- upload image in a meta box
- Can I load posts via Ajax?
- How to remove images from showing in a post with the_content()?
- Automatically added brs and paragraphs?
- Code to auto expire posts after 30 days
- 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?
- upload featured image from front end using wordpress add media button
- Keep a fluid max number of posts on site
- How to change post status from publish to draft using hook in wordpress?
- How do I create Comma Separated list of attached image ids?
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Get post embedded image caption
- how to grab first link in post… and of course call it
- Custom colors for post rows based on post meta value
- How to add an admin function only to posts, not pages?
- Human Time Diff, change mins to minutes
- Load post content into div with ajax
- How to get new post URL?
- Force update all posts in custom post type, no content changes
- Custom wp_trim_words() function not trimming right
- Disable REST API for a user ROLE
- How to display post tags
- How to Display Post View Count
- Remove double space after a period
- Add confirmation popup on “Move to Trash”
- 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?
- Remove image from post also removes photo from media library
- Code Blocks with WYSIWYG in blog post
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- Delete Post From Front-End and attachment permanently
- $post object is null
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- Post taxonomy from exif data
- Remove inline width from figure
- All my inserted images gets a link to the full image even if it is already full size image
- Function to show random posts from a category
- How to change the page break URL from ../post/2 to …/post/page2/
- Hiding posts in a list from specified categories
- How can I list random authors from current post category?
- Disable single post page
- get custom image size
- Enabling post thumbnails for custom post type
- Remove permalink from images when inserting into post
- Run a function when post is deleted?
- How to get only text from wordpress post content?
- Checking is user author of number of posts?
- Get all images out of the posts content
- how to replace embedded “full” sized images within a post with the “large” ones
- Create cron job without a plugin?
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Getting current post ID in functions.php
- Batch process: remove first image from post content
- how can I put an image in a post with original size
- How to rename “Publish” metabox title in post screen
- Show featured image next to post-teasers in Genesis Framework?
- Get image from post’s gallery
- Image Insert into posts and pages not working after 3.2.1 update
- Action hook for new pending posts?
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Number format for wp_count_posts()
- Uppercase first sentence in every post
- Add icon/badge next to posttitle of specific category
- 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