Support » Plugin: Yoast SEO » Remove all SEO titles

Viewing 4 replies - 1 through 4 (of 4 total)
  • AFAIK – Yoast saves custom SEO titles into the meta value “_yoast_wpseo_title” so this should be your solution:

    WARNING: Untested.

    
    $post_args = array(
        'post_type'      => 'event',
        'posts_per_page' => -1
    );
    $posts = get_posts( $post_args );
    
    if ( $posts ) {
        foreach ( $posts as $item ) {
            delete_post_meta($item->ID, '_yoast_wpseo_title');
        }
    }
    

    *incorrect statement

    • This reply was modified 1 year, 6 months ago by  Beee.

    I think your solution works though… will test now.

    • This reply was modified 1 year, 6 months ago by  Beee.

    Works, thanks John.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove all SEO titles’ is closed to new replies.