• Hi guys,

    Is there any way to use in-page tabs for custom post types? I’d like to create a custom post type where each entry has multiple tabs, with various fields in each tab.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Yes, possible. In fact the demo pages are associated with a custom post type with the slug of apf_posts.

    1. Set the root page for a custom post type.

    
        public function setUp() {
    
            $your_post_type_slug = 'your_post_type'; // <-- set yours here
            // (required) Set the root page.
            $this->setRootMenuPageBySlug( 'edit.php?post_type=' . $your_post_type_slug;
    

    2. Add pages and tabs normally.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘In page tabs for custom post type?’ is closed to new replies.