listing posts on a static page

Post Reply
essentialsoflife
Ssr. Bludit
Posts: 14
Joined: Sun May 12, 2019 12:04 pm

Tue Dec 31, 2019 6:37 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: 14
Joined: Sun May 12, 2019 12:04 pm

Wed Jan 01, 2020 2:25 am

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: 1718
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Jan 01, 2020 11:40 pm

There is at the moment a bug setting another page beside the mainpage as blog page.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
essentialsoflife
Ssr. Bludit
Posts: 14
Joined: Sun May 12, 2019 12:04 pm

Thu Jan 02, 2020 4:50 am

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

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.
My Plugins
My Blog | Tech, DIY, Tutorials, Retro and more…
User avatar
diego
Site Admin
Posts: 721
Joined: Sat May 16, 2015 2:53 pm
Contact:

Sun Feb 09, 2020 7:08 pm

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
Post Reply