how to obtain one (latest post) on the front page
-
I’d like to know how I can display only one (the latest) post on my blog’s front page? I’ve selected one post per page in the settings but it seems to no be working.
thanks,
Stephen
The blog I need help with is: (visible only to logged in users)
-
Hi Stephen,
Right now your blog is set to display a static front page, so your blog posts will not appear there. There are a couple ways you can change this:
1. If you want your front page to display your latest posts, you can change this under Settings > Reading in your dashboard. Next to “Front page displays,” you can select “Your latest posts.”
2. If you want to keep a static front page, you can display a list of posts on a static page by using the Display Posts Shortcode. For example, the following code will display an excerpt of your latest post:
[display-posts posts_per_page="1" include_excerpt="true"]Please let me know if you have any questions about this!
-
-
Hi Stephen,
The display posts shortcode can be inserted on any static page. To put it on your site’s front page, you will need to insert it on the page listed next to “Front page:” under Settings > Reading in your dashboard.
I took a look at your settings, and the front page you are using is untitled. To find it and insert the code, you can go to Pages > All Pages in your dashboard and look for a page called “(no title)”.
Please let me know if I can provide any further help with this. :)
-
- The topic ‘how to obtain one (latest post) on the front page’ is closed to new replies.