- This topic has 16 replies, 3 voices, and was last updated 7 years ago by Tom.
-
AuthorPosts
-
August 8, 2015 at 1:50 pm #127647Xuran
Hi there,
I’m wondering if it’s possible to show the newest post in full on index pages (mainpage, category pages), and then having all other posts just showing content until the “more” break. I didn’t find this function, so if it’s not easy to do, then I guess this is a feature request π
Thanks!
Xuran.August 8, 2015 at 11:50 pm #127747TomLead DeveloperLead DeveloperHi Xuran,
Great question! Let me know look into this to see if I can find any functions that can make this happen for you π
Will get back to you.
August 9, 2015 at 5:04 am #127780XuranGreat, Tom! And thanks for the quick reply!
August 9, 2015 at 10:07 am #127836TomLead DeveloperLead DeveloperGive this function a try: https://gist.github.com/generatepress/4eae715c9bd1da203d78
Be sure you have your Blog Content set to show the excerpt in “Appearance > Customize > Blog > Blog Content”.
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
August 9, 2015 at 12:09 pm #127852XuranThanks Tom,
This works, but only when not using manually added “read more” tags. Not a big deal, and completely workable this way, but if there’s a way to manually set the “read more” break while still having this functionality, I’d still be interested.
Anyway, thanks again for your quick response!
Xuran.August 9, 2015 at 10:30 pm #127943TomLead DeveloperLead DeveloperCurrently, this is the only way to “trick” the post into showing the full content.
I’ll look into this some more – I may have to add something into core to make this possible in the future.
Thanks!
August 10, 2015 at 12:12 am #127980XuranGreat, thanks again!
September 2, 2015 at 12:41 pm #133851XuranHi Tom,
I’m still using the function you provided, and have run into a problem.
In Masonry mode, this function seemed to work great, showing only the newest post in full, however when clicking the “load more” button to load more older posts, the first newly loaded post is also shown fully, looking really weird.
Is there any way to fix this?
Thanks,
Edwin.September 2, 2015 at 7:57 pm #133948TomLead DeveloperLead DeveloperHi Edwin,
Try this updated code: https://gist.github.com/generatepress/4eae715c9bd1da203d78
September 2, 2015 at 11:54 pm #133975XuranGreat work Tom, that has it working perfectly,thanks a lot for sharing!
September 2, 2015 at 11:55 pm #133976TomLead DeveloperLead DeveloperGlad it worked π
March 29, 2017 at 8:50 am #298966JosephHi there, on the flip side, I cannot get my blog to stop showing full page on the blog post page. I have the setting set on Show Excerpt with 55 characters but still shows up full page on the blog post page.
I have Generate Blog 1.2.84 installed with license key.
http://damselsinthepress.com/blog/
I can send you login credentials if you are not able to view.
thanks in advance
March 29, 2017 at 10:32 am #299030TomLead DeveloperLead DeveloperThere seems to be a maintenance page up.
If “Excerpt” is set, but the full post is showing, there’s a couple things to check:
1. Is the “More Tag” added?: https://docs.generatepress.com/article/using-the-more-tag/
2. Is the “Post Format” meta box when editing the post set to something other than Standard?March 29, 2017 at 10:49 am #299038JosephTry this Tom. still couldn’t get it to work
Still showing full post page on the blog page, @scratchingmyheadMarch 29, 2017 at 11:35 am #299068TomLead DeveloperLead DeveloperLooks like your posts only have the word “Test” in them.
Looking at the HTML, they are set to use excerpts. Once more content is added you should see it work.
-
AuthorPosts
- You must be logged in to reply to this topic.