Tagged: ,

Viewing 2 reply threads
  • Author
    Posts
    • #4935
      mcmaster
      Member

      I have a simple meta-box with two text fields that appears in the right column of all posts of type “page.”

      <?php
      /*
      Title: Section Name
      Post Type: page
      Capability: manage_options
      Description: for pages at the top of a section; used in sidebar nav
      Context: side
      Priority: default
      */
        
      piklist('field', array(
      	'type' => 'text',
      	'field' => 'section_name',
      	'label' => 'Section name:',
      ));
      
      piklist('field', array(
      	'type' => 'text',
      	'field' => 'section_head',
      	'label' => 'List this page in menus as:',
      ));
      

      When I added a workflow, the meta-box disappeared. If my parts/workflows folder is empty, the meta-box is there. If I add even just the flow header file (below), the meta-box is gone.

      <?php
      /*
      Flow: Homepage Workflow
      Page: post.php, post-new.php, post-edit.php, admin.php
      Post Type: page
      Header: true
      Position: title
      */
      

      Am I missing something here?

      Thanks!
      Donna

    • #4947
      Steve
      Keymaster

      @mcmaster– Workflows are actually designed to control the ENTIRE page, not just what’s under the tabs…even sidebar meta-boxes.

      Just add the following to your meta-box header:

      Tab: All
      Flow: Homepage Workflow
      
    • #4955
      mcmaster
      Member

      @Steve, thanks, that explains it!

      Donna

Viewing 2 reply threads
  • The topic ‘adding workflows causes sidebar meta-box to disappear’ is closed to new replies.