Display Posts includes a few different options for wrappers (unordered list, ordered list, and div) but all of these are block-level elements. That means they display as their own unique block on the page.
If you want to display the most recent post inside a paragraph, we’ll need to use an inline element. The code snippet below lets you use the following shortcode:
[display-posts wrapper="span" posts_per_page="1"]
Since all the posts will show up on a single line, it’s probably best to limit it to a single post, as I’ve done above with the
The most recent post on Display Posts is Add class to current post for styling.
The most recent post on Display Posts is [display-posts wrapper="span" posts_per_page="1"].