Edin theme: Is possible to show only the last post in a separate page?
-
Hi all,
I created a Front Page, with 3 featured pages. One of these featured pages is the “blog” one. But it appears all my latest posts in this area, extending awfully the height of this area, leaving blank space bellow the others 2 featured pages.
I would need, if possible, to configure another page with only the last blog post. How could I do it? Thank you in advance.The blog I need help with is: (visible only to logged in users)
-
Hi there,
The behaviour you noted (all posts being displayed when “blog” is selected as a featured page) is a known quirk that it isn’t possible to fix.
You can, however, make use of the display posts shortcode in order to display only certain posts on a particular page:
If, for example, you tag the post you want to feature as “last” then the following version of the shortcode can be use on a page:
[display-posts tag="last" include_excerpt="true" image_size="thumbnail" wrapper="div"]Let me know if that’s helpful or if you have any extra questions.
-
Hi, and thank you very much for your response.
If I understand correctly, I added one more tag to my last post, called “last”, and then I created a new page and I added the code you provided me to the content of this new page, is that correct?
I must have done something wrong because it does not work right now…Again, thank you!
-
Yes, those are the correct steps to embed your last post to a page. Can you share the page you’ve added the code to? I can take a look into why it’s not working from there.
Thanks!
-
Oh! It works now! I don’t know why yesterday didn’t worked :( I haven’t changed everything…
The thing is that in “featured page 1” space don’t appears this last post, but the page excerpt, logically… This is not what I wanted, but I supose there is not another solution.
I solved it by creating a page with a link to the blog, both in the content and in the excerpt, as you can see in lionztec.wordpress.com
The page I created with your suggest is: https://lionztec.wordpress.com/blog/entrada-blog/ultima-entrada/
Thank you so much for your help, sincerely.
-
I’m glad it’s working correctly now! There may have been a caching issue that caused a delay.
If you’d still like to use that page on your home page, you could manually enter the post as a custom excerpt.
It sounds like you may have found a workaround that works for you, though! Please do let me know if you have extra questions.
- The topic ‘Edin theme: Is possible to show only the last post in a separate page?’ is closed to new replies.