Archived topic
Setting for "show related pages"
11 replies · Started by Michael on October 3, 2019
Hi,
I was wondering if there is a theme specific way to show related pages? But not on all pages, just a few selected ones. So we have for instance a few articles on our website, and they draw people in. I would like to make it easy for them to, at the end of the article, click on a link to another interesting article.
Is there a way to achieve that in GP itself? Or would I need a plugin, or perhaps a coded solution?
Thanks :)
Hi there,
are these Pages or Posts?
And how would they be selected - manually or related eg. same Category.
Hi David,
Long time no talk :)
It would be for Pages. And ideally I would be able to select manually which pages to relate to.
Hi Michael :) Been a while.
First thought would be the WP Show Posts plugin.
It allows you to show a list / grid of pages ( as well as posts ). You would need to create your lists first and then add the shortcode it creates to the page itself or use the Hook Element.
Thank you - I'll look into that :)
You're welcome
Hi David,
I was wondering if you perhaps have a suggestion for me? I have created a list, and it is displayed on this particular page: https://www.blojfri.se/pottraning-initiativ/ please scroll down to the bottom - to "Andra har också läst"
I'm ok with the settings, and I think everything looks reasonably ok, apart from the distance between the headings and the excerpts.
Despite using the "inspect" function in Chrome, and looking through the settings in GeneratePress - I'm unable to adjust it.
Perhaps there is a magical css fix?
Also, I just realised. The list, which in the page example includes all pages in a specific category, does also show the page it is currently on. Do you think that is a problem? Or better to somehow create a function to solve this?
Hi there,
try this CSS - it will reduce the space on ALL WPSP lists:
.wp-show-posts-entry-header {
margin-bottom: 0.5em;
}
If you only want to effect that particular list then this:
#wpsp-3708 .wp-show-posts-entry-header {
margin-bottom: 0.5em;
}
Hi!
That did it!
I assume there is no way to exclude the current page from the list? By that I mean:
A list consists of
Page 1, Page 2, Page 3.
I insert that list at the bottom of Page 1, Page 2, and Page 3.
Preferably, when I visit Page 1, the list at the bottom should not contain Page 1. Or if I visit Page 2, the list of the bottom should contain Page 1 and Page 3.
In the WPSP List > More Settings try checking Exclude current
*facepalm*...
Apologies - I missed that setting :)
Thank you!
You're welcome