listing posts on a static page
-
- 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.
-
- 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');
}
-
- 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!
Try this plugin. It shows the posts, the posts per category and the categories in a single page.
You can see a demo here.
You can see a demo here.
Hi, nice plugin, have you uploaded to https://plugins.bludit.com/ ?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.
Here are the steps, https://github.com/bludit/plugins-repository
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.