• Anyone Please help! I have made a plugin which creates post_type pages in the backend. The plugin is creating the desired pages but the problem is whenever i try to see the page list, it shows “No pages found” message. Screenshot here: https://prnt.sc/azalub

    My code for creating the required pages here:

    $new_page = array('post_title'    => $title,
                     'post_content'  => '['.$shortcode.']',
                     'post_status'   => 'publish',
                     'post_type'     => 'page'
                   );
    $post_id = wp_insert_post( $new_page );

    Thanks

  • The topic ‘Creating pages on plugin’ is closed to new replies.