• 08-11-2022, 23:13:45
    #1
    LisansOnay.com
    Merhabalar,

    Rank math seo pro eklentisi var, belirlediğim anahtar kelimeyi paylaşılacak yeni içeriklere otomatik nasıl ekletebilirim? Rank math seo eklentisi böyle bir özellik sunuyor mu? Biraz kurcaladım lakin bilmediğim için anlayamadım.
  • 08-11-2022, 23:16:47
    #2
    Hocam bir gidişatla ve belli bir akıcılıkla giden makaleye sonradan kelime serpme çok kötü olma mı?
    Zaten içeriği yazan kişi, odak kelimesine göre analizi yapar ve gerekli şekilde sonuçlara göre yazıya yayar. Sonradan eklemek bence çok mantıksız olur. Seonun kuralları var. En başta buna uygun olmalı zaten. Sonradan eklenen 1 kelime bile ayarları bozabilir.
  • 08-11-2022, 23:34:58
    #3
    ben rank math kullandığım sitelere elle manuel giriyorum anahtar kelimeleri ve metaları çok da güzel listeleniyor ütelik kırılmışı da iş görüyor uçuruyor siteyi
  • 08-11-2022, 23:37:16
    #4
    Kurumsal PLUS
    functions.php dosyasına veya aktif kullandığınız temanın içine rank-math.php adında bir dosya oluşturun. Aşağıdaki seçime göre kodu bu dosyanın içerisine ekle.
    Tüm sitedeki yazılar için gönderi başlığının anahtar kelime olmasını istiyorsanız:
    /**
     * Function to automatically update the focus keyword with the post title
     */
    function update_focus_keywords()
    {
        $posts = get_posts(array(
            'posts_per_page'    => -1,
            'post_type'        => 'post' //replace post with the name of your post type
        ));
        foreach ($posts as $p) {
            update_post_meta($p->ID, 'rank_math_focus_keyword', strtolower(get_the_title($p->ID)));
        }
    }
    add_action('init', 'update_focus_keywords');
    Yada sadece odak anahtar kelimesi olmayan yazılar için gönderi başlığını odak anahtar kelime yapmak istersen:
    /**
     * Function to automatically update the focus keyword with the post title, if no focus keyword is set
     */
    function update_focus_keywords() {
        $posts = get_posts(array(
        'posts_per_page'    => -1,
        'post_type'        => 'post' // Replace post with the name of your post type
        ));
        foreach($posts as $p){
            // Checks if Rank Math keyword already exists and only updates if it doesn't have it
            $rank_math_keyword = get_post_meta( $p->ID, 'rank_math_focus_keyword', true );
        if ( ! $rank_math_keyword ){ 
                update_post_meta($p->ID,'rank_math_focus_keyword',strtolower(get_the_title($p->ID)));
            }
        }
    }
    add_action( 'init', 'update_focus_keywords' );
  • 09-11-2022, 00:37:38
    #5
    LisansOnay.com
    RakipsizHizmet adlı üyeden alıntı: mesajı görüntüle
    functions.php dosyasına veya aktif kullandığınız temanın içine rank-math.php adında bir dosya oluşturun. Aşağıdaki seçime göre kodu bu dosyanın içerisine ekle.
    Tüm sitedeki yazılar için gönderi başlığının anahtar kelime olmasını istiyorsanız:
    /**
     * Function to automatically update the focus keyword with the post title
     */
    function update_focus_keywords()
    {
        $posts = get_posts(array(
            'posts_per_page'    => -1,
            'post_type'        => 'post' //replace post with the name of your post type
        ));
        foreach ($posts as $p) {
            update_post_meta($p->ID, 'rank_math_focus_keyword', strtolower(get_the_title($p->ID)));
        }
    }
    add_action('init', 'update_focus_keywords');
    Yada sadece odak anahtar kelimesi olmayan yazılar için gönderi başlığını odak anahtar kelime yapmak istersen:
    /**
     * Function to automatically update the focus keyword with the post title, if no focus keyword is set
     */
    function update_focus_keywords() {
        $posts = get_posts(array(
        'posts_per_page'    => -1,
        'post_type'        => 'post' // Replace post with the name of your post type
        ));
        foreach($posts as $p){
            // Checks if Rank Math keyword already exists and only updates if it doesn't have it
            $rank_math_keyword = get_post_meta( $p->ID, 'rank_math_focus_keyword', true );
        if ( ! $rank_math_keyword ){
                update_post_meta($p->ID,'rank_math_focus_keyword',strtolower(get_the_title($p->ID)));
            }
        }
    }
    add_action( 'init', 'update_focus_keywords' );
    Merhaba hocam ilginiz için teşekkür ederim. Peki ben belirlediğim anahtar kelimeleri girmek istiyorum başlık değil de bunu yapabiliyor muyuz? Bunu denedim sorunsuz bütün içeriklerin anahtar kelimeleri başlıkta ki gibi oldu


  • 09-11-2022, 00:50:26
    #6
    Kurumsal PLUS
    Muhammet adlı üyeden alıntı: mesajı görüntüle
    Merhaba hocam ilginiz için teşekkür ederim. Peki ben belirlediğim anahtar kelimeleri girmek istiyorum başlık değil de bunu yapabiliyor muyuz? Bunu denedim sorunsuz bütün içeriklerin anahtar kelimeleri başlıkta ki gibi oldu


    o konuda bilgim yok maalesef
  • 09-11-2022, 00:51:47
    #7
    LisansOnay.com
    RakipsizHizmet adlı üyeden alıntı: mesajı görüntüle
    o konuda bilgim yok maalesef
    Tamamdır teşekkür ederim, temeli siz attınız belki biri de devam ettirir de bilgi verir
  • 22-07-2023, 18:47:20
    #8
    Şuan çalışmıyor sanırım, 2 ayrı kodu denedim olmadı.
  • 15-02-2024, 15:43:20
    #9
    evet çalışmıyo şu anda sanırım