I want to show the latest blog post content in my side bar with a read more link.
So how will I do this?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityUse get_posts()
and set 'numberposts'
to 1
. The first and only entry will contain your latest blog post as a post object.