Page 1 of 3
listing posts on a static page
Posted: Tue Dec 31, 2019 6:37 pm
by essentialsoflife
I have a child theme based on Blekathlon at
http://betterhealthjourney.com/. I have chosen a static page as my homepage. Now how do I list the latest content - either on the page or a link to another page? I have linked to categories in my menu, but can't find an option to display a page or section for the latest content.
Re: listing posts on a static page
Posted: Wed Jan 01, 2020 2:25 am
by essentialsoflife
After reading other similar topics, I created a static page called plexus-success-stories. I put this code in index.html (replacing the original where am I code, but the posts are not listed (I have over 150 and want 8-12 with cover img and excerpt per page). What have I done wrong?
Code: Select all
if ($WHERE_AM_I == 'page' && $page->slug() == 'plexus-success-stories' && $page->isStatic() ) {
include(THEME_DIR_PHP.'home.php');}
else if ($WHERE_AM_I == 'page') {
include(THEME_DIR_PHP.'page.php');
}
else {
include(THEME_DIR_PHP.'home.php');
}
Re: listing posts on a static page
Posted: Wed Jan 01, 2020 11:40 pm
by Edi
There is at the moment a bug setting another page beside the mainpage as blog page.
Re: listing posts on a static page
Posted: Thu Jan 02, 2020 4:50 am
by essentialsoflife
Oh, I see! Now that I know that, I can figure out what I want to do. Thank you!
Re: listing posts on a static page
Posted: Sun Feb 09, 2020 5:01 pm
by Geonx
Try
this plugin. It shows the posts, the posts per category and the categories in a single page.
You can see a demo
here.
Re: listing posts on a static page
Posted: Sun Feb 09, 2020 7:08 pm
by diego
Geonx wrote: ↑Sun Feb 09, 2020 5:01 pm
Try
this plugin. It shows the posts, the posts per category and the categories in a single page.
You can see a demo
here.
Hi, nice plugin, have you uploaded to
https://plugins.bludit.com/ ?
Here are the steps,
https://github.com/bludit/plugins-repository
Re: listing posts on a static page
Posted: Tue Aug 04, 2020 5:07 pm
by Jay
Edi wrote: ↑Wed Jan 01, 2020 11:40 pm
There is at the moment a bug setting another page beside the mainpage as blog page.
Edi, do you know if this bug has been fixed in Bv3.13 and users can list all blog posts on a static page with working pagination?
Re: listing posts on a static page
Posted: Tue Aug 04, 2020 5:57 pm
by Edi
No, it's not yet fully fixed. It has been forgotten.
But you can use a page "Blog" for blog posts.
Re: listing posts on a static page
Posted: Tue Aug 04, 2020 6:26 pm
by Jay
Edi wrote: ↑Tue Aug 04, 2020 5:57 pm
But you can use a page "Blog" for blog posts.
Unfortunately I can't. Changing advanced options only complicated things
I messed with this over a year ago, and with every 1 step forward I went 2 steps back.
Until this feature isn't fully implemented and working, there's no way to set a static page, and let all posts be listed on it. With working pagination, without breaking all other page's URL's and many others.
Re: listing posts on a static page
Posted: Tue Aug 04, 2020 8:56 pm
by Edi
You have to set a page as mainpage, otherwise it does not work.