[TUTORIAL] How to target multiple countries using this simple WP Hack.

LondoN eXtream

Junior Member
May 14, 2020
115
58
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:

kw intent.png

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.
 
Last edited:
Thanks for sharing this method @LondoN eXtream.



Was this your main target using the code snippet provided above?
I can say so. Every multilingual plugin i've seen out there, you have to add a language and then to rewrite it in the proper language, so you will have content in 2 languages.

With this, the tag is targeting a second language and it's pointing to the main one.
The script just auto generate the alternate links to let google know you have multilingual content.

term: potato recipe

Original: Super easy potato recipe
TAG: Reteta super simpla de cartofi

Tag format: Reteta super simpla de %term%.

Do like this for description and title, and just add a tag to the main post.
 
So, you're basically including the same page for all the hreflangs without any modified content or translations,
Seems like it's working well for you, but that's surely not natural, neither a long lasting strategy for sure,

Did you get better results from using the same page instead of translated pages?
How about if the "X" keyword is not the same for the other langs, but translated versions instead, that won't work as good,

I don't want to criticize the method by any means,
Just willing to help as it could be improved for sure,

And one thing i'm certain of, that the content language is not as important as before for the foreign SERPs,
I have a couple of foreign websites, used to have almost all the SERPs with the targetted languages, but not anymore,
It's totally mixed now, authority plays a better role to rank & the content languages are less important
 
So, you're basically including the same page for all the hreflangs without any modified content or translations,
Seems like it's working well for you, but that's surely not natural, neither a long lasting strategy for sure,

Did you get better results from using the same page instead of translated pages?
How about if the "X" keyword is not the same for the other langs, but translated versions instead, that won't work as good,

I don't want to criticize the method by any means,
Just willing to help as it could be improved for sure,

And one thing i'm certain of, that the content language is not as important as before for the foreign SERPs,
I have a couple of foreign websites, used to have almost all the SERPs with the targetted languages, but not anymore,
It's totally mixed now, authority plays a better role to rank & the content languages are less important
I did not say that is gonna cover all niches.

For example, let's take the movie niche. Milions of people are looking to see online movies without paying a penny. So, instead of trying to rank for "Movie Name" keyword or "Watch X" in english, you could try to rank as i did using the tag. This will become:

Main: "X online subtitrat" -> main post in romanian

Just add the tag X in your wordpress post.

Then, from Yoast Settings you just make changes for all the tag pages:

"X" will become "Watch X 2024 free" with SEO Description: "Looking forward to see X 2024? You can view it here, free of charge". This is what i mean by keyword intent and for this type of content this method will work in foreign SEO.

It's a little bit catchy as i said, you have to figure it out if it's gonna work for your niche or no, but in this movie niche for example is gonna work. The main focus is to see a movie, does not matter what language is that movie in. This will create high engagement for your website, that google see as a good indicator to rank your website. You can see my keyword results.
 
I did not say that is gonna cover all niches.

For example, let's take the movie niche. Milions of people are looking to see online movies without paying a penny. So, instead of trying to rank for "Movie Name" keyword or "Watch X" in english, you could try to rank as i did using the tag. This will become:

Main: "X online subtitrat" -> main post in romanian

Just add the tag X in your wordpress post.

Then, from Yoast Settings you just make changes for all the tag pages:

"X" will become "Watch X 2024 free" with SEO Description: "Looking forward to see X 2024? You can view it here, free of charge". This is what i mean by keyword intent and for this type of content this method will work in foreign SEO.

It's a little bit catchy as i said, you have to figure it out if it's gonna work for your niche or no, but in this movie niche for example is gonna work. The main focus is to see a movie, does not matter what language is that movie in. This will create high engagement for your website, that google see as a good indicator to rank your website. You can see my keyword results.
Well, good point,
As long as it's working, this is worth the try,
Thanks for sharing tho ^^
 
PHP:
function add_custom_lang_attribute($output) {
    // Check if it's a WordPress tag archive
    if (is_tag()) {
        // Change the language to Turkish
        return 'lang="tr"';
    } else {
        // Return original attributes
        return $output;
    }
}

// Add lang attribute to html tag
add_filter('language_attributes', 'add_custom_lang_attribute');

Also add this in functions.php of your theme. This will change <html lang attribute with the target language you are trying to target, and it eliminate SEO Errors.
 
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
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock