To avoid the line break when posting 2 images side by side assign the alignleft or alignright class to them and put them on the same line in the editor without skipping any spaces between them.
Example:
<img src="https://wordpress.stackexchange.com/wp-content/uploads/your_image.jpg" alt="" class="alignleft" /><img src="/wp-content/uploads/your_image2.jpg" alt="" class="alignright" />
Edit
I forgot to mention that content after the floated images will overflow between the images unless you clear the floats. I add: <div class="clear"> </div>
after the images and add .clear {clear:both;}
to my css.
Related Posts:
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- data-accordion removed in Visual Editor
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- WordPress tinymce prints empty P tag and break html format
- How can I control the HTML output of my post?
- unwanted and tags in text editor
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- Custom settings page TinyMce: no formatting when echoing value of editor
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Selectively remove empty line after line change
- Prevent the Editor From Moving My
- Disable TinyMCE Table formatting width/height
- How can a TinyMCE modal return formatted/visual text?
- Why exactly does WordPress use p tags, not divs?
- Visual composer causing conflict with TinyMCE [closed]
- Adding a Media Button to the WordPress Content Editor
- WYSIWYG with HTML source?
- How do I include a TinyMCE editor in the frontend?
- Remove HTML editor and visual/HTML tabs from TinyMCE
- How to use tinyMCE for user “biographical info”?
- Stop editor from removing tags and replacing them with nbsp
- Possible to stop WordPress from adding p1, p2… classes to p tags in TinyMCE?
- Custom Tiny MCE button to bring up a custom php popup
- Add unique class or ID information to tinyMCE
- How can I stop TinyMCE from converting my HTML entities to characters?
- TinyMCE Anchor Button not showing
- How to keep non-breaking spaces in the visual editor?
- Is there a way to prevent the Editor from modifying my HTML
- Remove “Are You Sure” dialogue when leaving editor
- Creating a custom MCE view for your shortcodes [closed]
- Apply custom style to single word in WordPress
- How to customize the symbols that appear in the Visual Editor insert custom character
- How to keep a textarea and stop tinymce?
- TinyMCE Editor Set Default Tab
- TinyMCE – Show Advanced Options (2nd Row) By Default
- Disable TinyMCE autoformatting
- Visual Editor freezing on text highlight since 4.3
- Count Words using tinymce in the front-end
- TinyMCE – Add class to OL – selector doesn’t seem to get parent OL,UL, just LI’s (4.6.3)
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Keep pasted pre formatted code as it is -with tabs- in visual editor
- Text cut off after the character 𪇆 in TinyMCE
- TinyMCE Keyup Function
- Insert text a cursor position in to TinyMCE text editor
- Using main style.css with add_editor_style
- Hide TinyMCE controls in TinyMCE 4 (WordPress 3.9)
- Access tinymce from thickbox
- How can I troubleshoot why TinyMCE won’t load custom plugins in the visual editor?
- TinyMCE Editor as component in Gutenberg Block
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- WordPress editor strips out anchor tags when they appear on their own line
- wp_editor on input changes content
- Sortable WYSIWYG editor
- How do I add a TinyMCE row that all users can see, instead of just admins?
- How to disable formatting
- Add table button in editor without Plugin
- How to get line breaks to translate to paragraphs?
- Localize variables with TinyMCE script
- Shift-Enter in tinyMCE (wp 3.3.1) not working
- TInyMCE object Tag stripped
- Adding custom styles to elements, without creating new elements
- allowing all HTML tags in tinymce editor
- Keyup events in tinymce editor not working
- tiny_mce_before_init is not trigger
- Save WYSIWYG editor plugin settings, only works after second save
- Front-end image upload from TinyME [closed]
- Embed iFrame in WordPress 3.0.1
- Blank spaces show as a question mark
- Can i set css class for table via TinyMCE [closed]
- WordPress (TinyMCE) not removing script tags
- TinyMCE: Move buttons from 2nd row to top row
- Change the background of the TinyMCE editor with available WP arguments
- Why Editor reformats my code
- When I write posts I usually have to use non breaking space element in order to keep margins in between the sentences. why?
- TinyMCE doesn’t work correctly in the Media Modal Window
- How can I remove using built in wordpress filters
- Add custom value for link_class_list for the classic editor
- How to apply padding to TinyMCE editor?
- Wordpres Tinymce custom button (Gavick guide)
- Loading a self-hosted custom @font-face into TinyMCE dropdowns (Classic Editor) via ‘tiny_mce_before_init’ filter
- WordPress, tinymce, how get the link text from dialog?
- tinymce and responsive line-breaks (short words after a period)
- Load WordPress Editor .css on Front End
- Client on iPad accidentally adding tag to posts while writing
- Add custom TinyMCE 4 Button: Is it mandatory to have one JS per button?
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- Nested ordered list in tinymce
- Visual Editor not working properly
- wp_editor Too Tall when Content is Loaded
- TinyMCE HTML Encode Backslash
- Revealing ‘code’ hidden button in TinyMCE4 and WordPress 3.9.x
- TinyMCE 4.0: specifying buttons to display [duplicate]
- regEx wp core file
- Adding New Row of Custom TinyMCE
- Using TinyMCE fiddle for node filter to add id attribute to anchors
- How do I separate my theme’s styles from editor styles?
- Adding to he format dropdown menu tinyMCE in WordPress
- WordPress and TinyMCE Advanced: Failed to load javascript
- add button to tinymce
- install tinymce plugin [closed]