listing posts on a static page

essentialsoflife
Ssr. Bludit
Posts: 15
Joined: Sun May 12, 2019 12:04 pm

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.
essentialsoflife
Ssr. Bludit
Posts: 15
Joined: Sun May 12, 2019 12:04 pm

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');
}
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

There is at the moment a bug setting another page beside the mainpage as blog page.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
essentialsoflife
Ssr. Bludit
Posts: 15
Joined: Sun May 12, 2019 12:04 pm

Oh, I see! Now that I know that, I can figure out what I want to do. Thank you! :)
Geonx
Ssr. Bludit
Posts: 18
Joined: Sun Nov 15, 2015 1:18 pm
Contact:

Try this plugin. It shows the posts, the posts per category and the categories in a single page.

You can see a demo here.
My Plugins
My Blog | Tech, DIY, Tutorials, Retro and more…
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

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
User avatar
Jay
Master Bludit
Posts: 133
Joined: Mon Feb 11, 2019 8:41 pm

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?
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

No, it's not yet fully fixed. It has been forgotten. :-(

But you can use a page "Blog" for blog posts.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Jay
Master Bludit
Posts: 133
Joined: Mon Feb 11, 2019 8:41 pm

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 :cry:
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.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You have to set a page as mainpage, otherwise it does not work.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply