flaschenzug22
Forum Replies Created
-
Everything is turned on for the authors, also the “Show author archives without posts in search results”.
I followed the “resetting the indexables” instructions but nothing changed (no sitemap for the team members).
For the moment I wrote a script that is included in the functions.php and that overwrites the settings to indexable for all team members. But it would be amazing if we find the solution for this problem.
Thanks a lot for your help!a
I have investigated the behaviour / the origin of the problem a little further. When I add a post for a user, the “robots” tag is correctly set as “index, follow, …”. Without the post – noindex.
So I checked the yoast settings again: https://yoast.com/help/disable-enable-author-archives/ – and my config is like described in the linked help article.
https://yoast.com/app/uploads/2017/01/enable-author-archives.jpg
All the users will never write a post – but I need them to be in the google index. Any ideas? Or a way to hardcode this to the author.php file? Thanks a lot!
Oh and I forgot to mention: It is a multisite setup. Not sure if that makes a big difference, but could be important.
Thanks maybellyne. Custom code in the functions.php
add_role( 'team', 'Team' ); // executed once add_action('init','change_author_permalinks'); function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'team'; }
Forum: Developing with WordPress
In reply to: register_taxonomy problem while using 2 object_typesOkay, I was just stupid …
using get_the_ID() inside of another loop without using $loop->the_post() can’t work the way it should.Everything is working the way it should.
ThanksForum: Fixing WordPress
In reply to: Manipulate media files on load in frontendThanks for your fast reply :-).
But I can’t figure out how to use the hook.I created a single image and a gallery in a post.
In my functions.php I have this code:
function test123321($image, $attachment_id, $size, $icon){ $image[0] = 'https://newimagesrc.com/myimage.jpg'; return $image; } add_filter( 'wp_get_attachment_image_src', 'test123321', 10, 4);
But the images stay the same ?
What am I doing wrong?Forum: Plugins
In reply to: [Yoast SEO] Add pages with other languages to sitemapThanks :-). I will check the documentation and let you know, if i find something.
If not, I have to let google do the work (and find the pages without the sitemaps).Forum: Plugins
In reply to: [Yoast SEO] Add pages with other languages to sitemapThanks for your reply and your help.
It is the same wordpress installation and there is NO NEW POST for the translations.
The language folder is just added via rewrite rules and PHP, but points internally to the same page as the site without /it/ does.
Posts are translated automatically.
And by the way, the Yoast SEO plugin does not have a way to parse out different sitemaps for different languages because Google does not require it. We add all the languages to the same sitemap. So all posts (regardless of language) will appear on the post sitemap and the same happens for any other post type. Doing it this way is not expected to hurt the SEO or how Google crawls your site.
It would be fine for me, to add the translated pages to the existing sitemaps.
But I have no idea how to accomplish that.Forum: Plugins
In reply to: [Yoast SEO] The same term_title is displayed on all archive pagesnot even close to be solved … but whatever
Forum: Plugins
In reply to: [Yoast SEO] The same term_title is displayed on all archive pagesThanks for your help @maybellyne .
With your link I was able to define a new variable and to display it in the title Tag. So everything is working now.There is only one thing that I do not understand.
the function change_term_name() is called 5 times.
So if I uncomment this line (in the code below):
echo "test -> ".get_queried_object()->name."<br>;
I get the following output:test -> Nachhaltig & ?kologisch test -> Nachhaltig & ?kologisch test -> Nachhaltig & ?kologisch test -> Nachhaltig & ?kologisch test -> Nachhaltig & ?kologisch
Any ideas why this is happening? I assume it should be called only once.
Here is the code I used. Just if anyone needs it too.
// change term name in title function change_term_name(){ if(is_tax('themen')) { // echo "test -> ".get_queried_object()->name."<br>; return get_queried_object()->name; } else return ''; } // define the action for register yoast_variable replacments function register_custom_yoast_variables() { wpseo_register_var_replacement( '%%thema-title%%', 'change_term_name', 'advanced', 'some help text' ); } add
Forum: Plugins
In reply to: [Yoast SEO] No pagination but prev and next link in metaAs long as there is no solution here, I have completely disabled the meta data:
If anyone want’S to do the same, just add the following lines to your functions.php
// remove page next / prev from meta add_filter( 'wpseo_next_rel_link', '__return_false' ); add_filter( 'wpseo_prev_rel_link', '__return_false' );
Forum: Plugins
In reply to: [Yoast SEO] No pagination but prev and next link in metaBut if posts_per_page is set to -1, there shouldn’t be any prev or next links in the meta tags … right ?
That would make sense at least in my opinion.- This reply was modified 2 years, 7 months ago by flaschenzug22.
Forum: Plugins
In reply to: [WP YouTube Lyte] youtube, doubleclick, gstatic e.g. still loaded ?I assume it should be this filter:
https://www.advancedcustomfields.com/resources/acf-load_field/So with this code it could work, but I didn’t test it yet.
function my_acf_load_field( $field ) { return lyte_parse( ... the right var ... ); // or return lyte_preparse( ... the right var ... ); } // Apply to all fields. add_filter('acf/load_field', 'my_acf_load_field');
- This reply was modified 2 years, 7 months ago by flaschenzug22.
Forum: Plugins
In reply to: [WP YouTube Lyte] youtube, doubleclick, gstatic e.g. still loaded ?good point … yes they are.
Adding an embedded video via the blocks works fine.
So ACF it is.Forum: Plugins
In reply to: [WP YouTube Lyte] youtube, doubleclick, gstatic e.g. still loaded ?Is there a simple way for me to debug?
Not using many plugins.– ACF
– AUTOPTIMIZE
– UpdraftPlus
– WebP Converter
– Yoastre. backlog: perfect. would be nice if it is gone, but like you said: no high priority :-).
- This reply was modified 2 years, 8 months ago by flaschenzug22.