tolddsm
Forum Replies Created
-
hi,
it’s No Category Base (WPML).
It can safely change URL back to category prefix after disabled, at least no problem for me yet.Forum: Themes and Templates
In reply to: [GeneratePress] Show tags above titleYes, it works!
Great support as usual.
Forum: Themes and Templates
In reply to: [GeneratePress] Show tags above titlecool!
in your posts/categories, edit the category and set the meta description for that category archive.
Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] canonical not generatedUpdate:
It’s weird.
Need to set the individual setting for each category to index, then the canonical outputs.
THe default(index) does not output canonical.But in the general setting in TSF the noindex for category is not selected.
Still looking for what causes this conflict.
BTW, is it recommend to index, follow and archive for a category page? If so, then I will force them instead of selecting default(index).
Forum: Themes and Templates
In reply to: [GeneratePress] Show tags above titleHi,
How can I make this snippet NOT affecting search result page?
I see tags show on search result page before entry titles too.
Thanks!
Forum: Themes and Templates
In reply to: [GeneratePress] Show tags above titlehi,
tried another hook, it works, thank you!
Hi,
Final update.
After testing with tons of post plugin and strip category plugin.
Finally find a nice plugin to strip category prefix safely and starting using archive instead of a static page.
Resolved, thank you for your support Sybre.
hi,
sorry for tagging.
here is the issue:
1. with the default post archive URL with category prefix, everything is fine. i.e. abc.com/category/news, page-1, page-2 all self-canonical and with prev/next rel link.
2. If I want to strip the category prefix, i.e. use a plugin like this:
<?php /* Plugin Name: Category Pagination Fix Plugin URI: https://wordpress.stackexchange.com/a/311858/110572 Description: Fix category pagination Version: 1.0.0 Author: Fayaz Ahmed Author URI: https://www.fayazmiraz.com/ */ function wpse311858_fix_category_pagination( $query_string = array() ) { if( isset( $query_string['category_name'] ) && isset( $query_string['name'] ) && $query_string['name'] === 'page' && isset( $query_string['page'] ) ) { $paged = trim( $query_string['page'], '/' ); if( is_numeric( $paged ) ) { // we are not allowing 'page' as a page or post slug unset( $query_string['name'] ); unset( $query_string['page'] ) ; // for a category archive, proper pagination query string is 'paged' $query_string['paged'] = ( int ) $paged; } } return $query_string; } add_filter( 'request', 'wpse311858_fix_category_pagination' );
a. In the abc.com/news, archive page, the canonical is still the original URL with category base: abc.com/category/news, but with correct self-canonical in page-2, page-3.: abc.com/cateogry/news/page/2
b. Then I try to edit the canonical URL in category TSF section. If I input the canonical URL to be abc.com/news. Then all canonical URLs in page-2. page-3 are all the same: abc.com/news, without correct self canonical.
As you said, I might use an archive template for displaying posts, but I also need to strip the category prefix as well.
Conclusion,
with category prefix, all fine.
without category prefix, the canonical has some conflicts.
What did I do wrong? Thanks!
Hi Sybre,
I’ve been testing with regular post archive page. It seems like TSF only outputs a next/prev tag without self-canonical.
I have a URL for you to inspect the issue, can I contact you and send you the url by your contact form?
Hi thanks for the reply.
After digging this for a lot and I agree with you.
Is there a major difference between the /page/2, ?page=2 for SEO and canonical purpose? I’m seeing some plugin output ?page(d)=2 format, I might give them a try if there is no significant SEO differences.
Or should I not use a plugin, instead I need to customize the archive.php template and use it on a static page?
Thanks!
Forum: Plugins
In reply to: [WP Show Posts] canonical and paginationYes, I agree.
Thank you for the support!
Forum: Plugins
In reply to: [WP Show Posts] canonical and paginationHi,
Thanks but they don’t work.
I’ll try something else.
Forum: Plugins
In reply to: [WP Show Posts] canonical and paginationHi,
Thanks, I read that thread.
This code is for turning numbering pagination into previous and next post which I don’t need, I enjoy the numbering pagination by default.
I am in need of the rel-canonical problem to be fixed in some way.
I do hope there is a fix to this cuz using wpsp and using a static page as archive page is definitely one of the major usages for this plugin.
“The 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.” – TOM.
Need to turn from abc.com/blog-archive to abc.com/blog and show related posts. Using a static page and wpsp is the ideal solution I can think of now.