What would be the best approach to show only the very last single full post in the home page and in blog page the full (paged) list of blogs showing only its excerpts?
I'm thinking of 2 different ways of getting it: one is (A) choosing 'static page' for frontpage, the other one (B) choosing 'last entries'.
CASE A (static page)
I'd need a script to load full last post content. In 'options > reading' it'd be set to show excerpts and, for instance, 10 posts per page maximum
CASE B (last entries)
I'd need a script to force home page to show only one post (it'd be the last one) and do it in full. Same as in Case A, in 'options > reading' it'd be set to show excerpts and, for instance, 10 posts per page maximum.
.
Right now I'm using Case B. I already got a script inserted in functions.php in order to show only the last post (one). Still I need to force it to be shown in full (or to show the rest as excerpts by default).
The script I got it from here. https://www.webhostinghero.com/change-number-of-posts-on-homepage/
Anyone to help finding the easiest more straightforward solution?
TIA, hip
posts_per_page
set to 1 to get the latest post. the code for displaying posts is given as well. it's possible that your theme has a template part file for a single post, in which case you can just drop that into the loop after setting up the post data developer.wordpress.org/reference/functions/get_template_part hope this helps :)