Bela Padilla
Registered Member
- Apr 17, 2024
- 50
- 17
Thank you for sharing the tutorial, it was very helpful. I appreciate your contribution.
<link rel="alternate" href="https://www.site.com/article" hreflang="us" />
<link rel="alternate" href="https://www.site.com/article" hreflang="x-default" />
<link rel="alternate" href="https://www.site.com/article" hreflang="tr" />
<link rel="alternate" href="https://www.site.com/article" hreflang="fr" />
<link rel="alternate" href="https://www.site.com/article" hreflang="de" />
What will the final HTML look like? Can you post an example?After testing multiple niches, hacks and so on, i recently discovered a simple hack that i use on my website that is not even 2 months old. It's working very good and it has generated very good trafic.
The secret? Keyword Intent
What is KW Intent from my point of view?
For example you have the main keyword "X". This has a search volume of 200K (example). The keyword is very difficult to rank, and most of the traffic is coming from EN sites. But what people forgot is that X is searched in multiple countries. So, to target and get a lot of trafic of the KW "X", i am gonna use foreign languages, where "X" is popular too.
After this the keyword will become "X in foreign language". This way, i manage to rank always in top 10 and drive crazy traffic with minimum effort. (Keep in mind all my articles are 40-100 words long). Here are some results:
View attachment 336656
But, for most of the times, a single keyword can be popular in more countries. So, i am gonna explain how to target 2 different languages with a simple script.
First of all, be sure your Wordpress Tags can be indexable.
As always, try to write the article in your main language. Then, in Yoast SEO modify the Tags Page Title and meta description in a second foreign language, that is gonna look good with the keyword you try to rank for.
Add This script in functions.php of your WP Theme:
PHP:function generate_links() { if (is_single()) { global $post; $current_page = home_url($wp->request); $current_language = get_locale(); $tags = get_the_tags($post->ID); echo '<link rel="alternate" href="' . esc_url($current_page) . '/" hreflang="' . esc_url($current_language) . '" />' . "\n"; echo '<link rel="alternate" href="' . esc_url($current_page) . '/" hreflang="x-default" />' . "\n"; if ($tags) { $first_tag = $tags[0]; $first_link = get_tag_link($tag->term_id); echo '<link rel="alternate" href="' . esc_url($first_link) .'" hreflang="tr" />' . PHP_EOL; } } } add_action('wp_head', 'generate_links');
Now, you will rank for a keyword in 2 different languages. I am not sure if i explained good at all, but you will catch it.
If you think i helped you, a simple reaction is enought.
Do not forget to modify the this line:
PHP:echo '<link rel="alternate" href="' . esc_url($first_link) .'" hreflang="tr" />' . PHP_EOL;
Replace "TR" with your second language you want to target.
With this, i managed to completly remove Multilingual Plugins. For me, it has worked like a charm, give it a try and let me know your results.

<meta name="description" content="Noah's Ark (2024) filmini altyazılı çevrimiçi izleyin" class="yoast-seo-meta-tag" />
Like the man said for some niches this method will work....for some it won't....like the given example even if you don't know English and you land on a watch free online movie website and you see the player and the play button most people will press that and probably get to watch some ads before the movie and the webmaster gets paid.I think people searching for that keyword doing that because they don't understand english
so no point for me to target they keyword and when they will visit the page they won't find what they are looking for or they won't find the language they understand so they will leave
or Im missing something
Yes, as i said, you have to workout if my hack will work for your niche.Like the man said for some niches this method will work....for some it won't....like the given example even if you don't know English and you land on a watch free online movie website and you see the player and the play button most people will press that and probably get to watch some ads before the movie and the webmaster gets paid.
So G sees that there is an alternate page for this article in TR -View attachment 345275
This is how Yoast Seo Tag Configuration along with my piece of code should look.
PHP:<meta name="description" content="Noah's Ark (2024) filmini altyazılı çevrimiçi izleyin" class="yoast-seo-meta-tag" />
This is Meta Description generated by Yoast.
Then:
<link rel="alternate" href="url to main post" hreflang="ro" />
<link rel="alternate" href="main post" hreflang="x-default" />
<link rel="alternate" href="url to tag page" hreflang="tr" />
This should be present on the article HTML code and not on tag page html
And this is how it's done. Hope that helps everyone. So far this could work for movies, recipes and i think most of the niches.
visits it and gets meta title and description in TR language but empty page.<link rel="alternate" href="url to tag page" hreflang="tr" />
My main RO page ranks for keywords in RO.So G sees that there is an alternate page for this article in TR -
visits it and gets meta title and description in TR language but empty page.
But instead it (tag page), G ranks the main post which is in RO language - in RO and TR locations?