JohnM
Forum Replies Created
-
Finaly. if I disable rank math cache it works. here is the final code:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false'); add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){ if ( 'term' !== $type || 'post_tag' !== $object->taxonomy || $object->count > 10 ) { return $url; } return false; }, 10, 3 );
Thank you for your patience, I wish you all the best.
have the code that you made available to me in my functions.php. Then I added a rank-math.php to my theme and child theme.
add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){ if ( 'term' !== $type || 'category' !== $object->taxonomy || $object->count > 10 ) { return $url; } return false; }, 10, 3 );
and then clearch my cache and flush my cdn. still it doesn’t work.
add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){ if ( 'term' !== $type || 'post_tag' !== $object->taxonomy || $object->count > 10 ) { return $url; } return false; }, 10, 3 );
<?php add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){ if ( 'term' !== $type || 'post_tag' !== $object->taxonomy || $object->count > 10 ) { return $url; } return false; }, 10, 3 );
My question is: is there a filter that allows me to index tag archives only if number of post is 10 or more .
I tried this code in all possible variations and had to find out that it doesn’t work.
Meanwhile I have the impression that there is no such filter.
Instead of holding me out for 4 weeks, you could have said right away that it didn’t work.
Great plugin, bad support.
Thanks and all the best.the number 10 should be present in the code snippet, right?
I have the impression that you don’t really understand me.
If Rank Math has the function of indexing tag archives and integrating them into the sitmap, then there should also be an option to only index tags archives if you have a certain number of posts. In my case that would be 10. Because if the search engines index all tag archives (even those with a low number of posts, that can’t go well in the long run).
please correct me if i’m wrong.if I add this code to my functions.php, all tags archives under 10 posts are no longer indexed and no longer appear in the sitemap. correct?
not only that they are gone, video schema does not work anymore and turned into article schema.
- This reply was modified 4 years, 1 month ago by JohnM.
Forum: Plugins
In reply to: [Lazy Loader] Top 10 – Popular posts pluginDisabled native lazyload.
Tested on Mobile Site.
Everthing works fine right now. Thank you for your awesome support.
I wish you good luck with your Plugin.Forum: Plugins
In reply to: [Lazy Loader] Top 10 – Popular posts pluginIt`s not just the background images, when I test it with lazyloader from wp-rocket on mobile site, only 1 widget image and scripts are loading.
When you take alook at https://www.xoombs.com/music you will notice that lazy loading for iframes is not realy working (only for images).
To test your plugin of functionality give a try.
PS: all options in your plugin are active.Forum: Plugins
In reply to: [Lazy Loader] Top 10 – Popular posts pluginNice! The errors are fixed with beta 4, exept 1 thing:
On my Category Page https://www.xoombs.com/music I have embed Soundcloud widgets with iframe, when tested with Lighthouse for Mobile I recieve an error. The widgets dont load lazy. Your plugin is active right now. Can you take a look at this please. Thanks!Forum: Plugins
In reply to: [Lazy Loader] Top 10 – Popular posts pluginI`ve testet your beta version, error with archive page is fixed now, but I receive new errors like palomar83 with his events calander:
1. logo png no longer appears
2. social icons no longer appears
3. my last post was an WebP image, also no longer appearsScreenshot: Link
- This reply was modified 4 years, 3 months ago by JohnM.
Forum: Plugins
In reply to: [Lazy Loader] Top 10 – Popular posts plugintptn_list_link works fine for Top 10 – Popular posts plugin, thanks for that.
I found the error that breaks my site when I try Process the complete markup.
It was the plugin Peepso Link.
All Post on Category and tag pages won`t show.
Scrrenshot: https://ibb.co/5F1K06M
I found the error but I dont`t know how to fix them.- This reply was modified 4 years, 3 months ago by JohnM.
- This reply was modified 4 years, 3 months ago by JohnM.
- This reply was modified 4 years, 3 months ago by JohnM.
- This reply was modified 4 years, 3 months ago by JohnM.
- This reply was modified 4 years, 3 months ago by JohnM.
- This reply was modified 4 years, 3 months ago by JohnM.
Forum: Plugins
In reply to: [Lazy Loader] Top 10 – Popular posts pluginHi Florian, unfortunately this function breaks my website.
Forum: Plugins
In reply to: [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes] Embed code MismatchOf course: https://www.xoombs.com/music/jason-derulo-swalla.
It happend on all posts.Forum: Plugins
In reply to: [Top 10 - WordPress Popular posts by WebberZone] Mp4 SupportYes, via media uploader. it would be awesome if your plugin would support video.
Forum: Plugins
In reply to: [Top 10 - WordPress Popular posts by WebberZone] Mp4 SupportExact.