Nikita_Sp
Forum Replies Created
-
Hi @arnaudbroes,
Sorry for didn’t response too long, but seems the issue is still there – Ahrefs just pinged me that I’ve got 2 meta descriptions.
Please, remove ” – Page %s” from meta description on pagination pages (for taxonomies) if the meta description is empty by default, for those who doesn’t have Pro version.
Thanks.
@arnaudbroes hi!
Seems last update fix this issue, but only on archive page.
Categories still has this issue.Thanks.
Hi @arnaudbroes,
I’ve updated the plugin to the latest version, but the issue is still there.
Could you please provide more information?Thanks.
Hi @arnaudbroes,
Thanks for the reply, really waiting for this update!
Forum: Plugins
In reply to: [Contextual Related Posts] Disabling styles not working properlySeems it’s works. Thanks.
@benjaminprojas yeah, seems so. Thanks.
Nice! You’d better hurry up with this update it’s very important for SEO titles for a ton of plugin’s users.
Thanks.
@benjaminprojas if it’s not conceived and it is a mistake, than I think you’d better use
post_type_archive_title()
instead ofget_the_archive_title()
inapp/Common/Utils/Tags.php
on line 910:case 'archive_title': $title = wp_strip_all_tags( get_the_archive_title() ); // <--- here return $sampleData ? __( 'Sample Archive Title', 'all-in-one-seo-pack' ) : $title;
Many thanks.
What are your title settings and which type of archive is this?
It’s simple and seems default for all websites
#archive_title - #site_title
??I’m assuming it’s for a custom post type?
Yeah, of course.
After a small research, seems now we should use one more WordPress core filter
get_the_archive_title
with code like that:add_filter( 'get_the_archive_title', function ($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '<span class="vcard">' . get_the_author() . '</span>' ; } elseif ( is_tax() ) { //for custom post types $title = sprintf( __( '%1$s' ), single_term_title( '', false ) ); } elseif (is_post_type_archive()) { $title = post_type_archive_title( '', false ); } return $title; });
Am I right?
Yeah, the new hook name is working like a charm ??
But now the function is using some dynamics titles, as I see:
if ( is_archive() ) { $postType = get_queried_object(); $options = aioseo()->options->noConflict(); if ( $options->searchAppearance->dynamic->archives->has( $postType->name ) ) { return $this->prepareTitle( aioseo()->options->searchAppearance->dynamic->archives->{ $postType->name }->title ); } }
Instead of labels, like earlier.
@benjaminprojas now #archive_title contains “Archive: ” string.
And now the title looks like “Archive: Reviews | Website name” instead of “Reviews | Website name” earlier.How we can avoid this?
Thanks.mistake message
- This reply was modified 3 years, 11 months ago by Nikita_Sp.
@benjaminprojas thank you for a such quick response, I’ll check it!
Forum: Plugins
In reply to: [Contextual Related Posts] Polylang compatibility@ajay thanks, nice to hear it! Will wait for the update with info in changelog to remove additional script from theme functions.
Thanks.