- This topic has 10 replies, 3 voices, and was last updated 5 years, 3 months ago by
Tom.
-
AuthorPosts
-
March 16, 2021 at 4:50 pm #1698110
stephen
I was wondering how we change the numbered links on WP Post Lists to next and previous. I was told this is better for SEO.
March 16, 2021 at 4:57 pm #1698115Elvin
StaffCustomer SupportHi there,
Can you point us to the page where the list is? To check and be able to provide an appropriate approach.
You can use the private information text field to provide the site link.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationMarch 16, 2021 at 4:57 pm #1698116stephen
RingsideNews.com. We have the WP Show Lists right there on the main page.
March 16, 2021 at 5:41 pm #1698145Elvin
StaffCustomer SupportAh I see, you meant WP Show Posts list. Thanks.
I was wondering how we change the numbered links on WP Post Lists to next and previous. I was told this is better for SEO.
To clarify: You want the paging numbers to be removed and only keep the next and previous buttons?
Let us know.
Reminder: This should be posted on the WPSP forums here:
https://wpshowposts.com/support/area/pro-support/March 16, 2021 at 5:51 pm #1698149stephen
We currently don’t have previous and next buttons. We have numbers. I would like to make these previous and next buttons. We are displaying currently using your guys WP Show Lists plugin.
March 16, 2021 at 6:22 pm #1698165Elvin
StaffCustomer SupportWe currently don’t have previous and next buttons. We have numbers. I would like to make these previous and next buttons. We are displaying currently using your guys WP Show Lists plugin.
I’m not sure I see what you mean.
I’ve checked your site and the next and previous buttons are displaying as shown here:
https://share.getcloudapp.com/5zuAx0xPIf you meant the “previous” button only. It doesn’t show on the first page of the pagination as there’s no previous page to go to. The same goes for “next” when you’re in the last page.
March 16, 2021 at 6:23 pm #1698167stephen
There also appears to be additional issues with WP Show Posts and “canonical” options. Basically, when you set pagination on, and you go to page two, no “canonical” options for page 2, 3, 4, ect are being created within Yoast SEO. All the “canonical” URL are pointing back to the main page of the domain, which is not correct.
When using default archive/display all posts on the main page, the “canonical” works just fine. It just doens’t work with WP Show Posts and Generatepress. This is very bad for SEO.
Any way to fix this?
March 16, 2021 at 6:26 pm #1698169stephen
What I am saying is that we don’t want those numbers there. Is there a way to remove them and just have it say “Next” and “Previous”
March 16, 2021 at 6:55 pm #1698185stephen
I was able to get rid of the numbers via CSS. But there is still a major issue.
There also appears to be additional issues with WP Show Posts and “canonical” options. Basically, when you set pagination on, and you go to page two, no “canonical” options for page 2, 3, 4, ect are being created within Yoast SEO. All the “canonical” URL are pointing back to the main page of the domain, which is not correct.
Any idea on how to fix this? Ideally when “pagination” is enabled, you would want the “canonical” to display on page 2 to point to page 2. By default, it’s pointing to the homepage.
March 16, 2021 at 7:19 pm #1698192stephen
this here is somewhat the issue we have.
March 17, 2021 at 8:40 am #1699109Tom
Lead DeveloperLead DeveloperThe main issue here is that WP Show Posts is meant for a simple list of posts. While pagination is possible, it can cause issues if you’re expecting the page to act as an archive page with canonical links. This would require a custom solution to be added that the plugin simply isn’t able to do by default on static pages.
As for the next/previous links, you’ll need to hook them into the list:
add_action( 'wpsp_after_wrapper', function( $settings ) { if ( 123 === (int) $settings['list_id'] ) { next_posts_link( __( 'Older posts' ) ); previous_posts_link( __( 'Newer posts' ) ); } } ); -
AuthorPosts
- You must be logged in to reply to this topic.