WordPress.org

Ready to get started?Download WordPress

Forums

Convert Post Types
Call clean_post_cache / clean_page_cache after conversion? (1 post)

  1. atow
    Member
    Posted 3 years ago #

    After converting the post type, you should call either clean_post_cache or clean_page_cache on the converted post. For instance:


    endforeach;

    if ( $_POST['post_type'] == 'page' ) {
    clean_page_cache( $item->ID );
    } else {
    clean_post_cache( $item->ID );
    }
    }
    $wp_rewrite->flush_rules();

    http://wordpress.org/extend/plugins/convert-post-types/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic