CanYildirim adlı üyeden alıntı: mesajı görüntüle
aynen hocam, son 100 postu getiriyor. sırasıyla offseti arttırabilirsiniz, post_per_page'nin üstüne ekledim.

function update_focus_keywords() {
    $posts = get_posts(array(
        'offset' => 100,
        'posts_per_page' => 100,
        'post_type' => 'post'
    ));
    foreach($posts as $p){
        if(!get_post_meta($p->ID, 'rank_math_focus_keyword', true)){
                update_post_meta($p->ID,'rank_math_focus_keyword', $p->post_title);
        }
    }    
}
add_action( 'init', 'update_focus_keywords' );
Peki bunu mu kullanmak daha iyi sizce yoksa üstteki mi?