Viewing 14 reply threads
  • Author
    Posts
    • #4249
      vagelis
      Member

      Hi again. I’ve made some workflows using piklist and despite the fact that I’ve set one of them as default when I attempt to make a new post it does not being selected and I cannot figure out why.

      Below is my code (some of it cause the metaboxes contain many fields)

      workflow.php

      <?php
      /*
      Flow: Yachts Categories
      Page: post.php, post-new.php, post-edit.php, admin.php
      Post Type: yacht
      Header: true
      Position: title
      */
      ?>

      Default tab:

      
      <?php
      /*
      Title: Μηχανοκίνητα < 25ft
      Default: true
      Flow: Yachts Categories
      Page: post.php, post-new.php, post-edit.php, admin.php
      */
      
      // WordPress Core Meta Boxes
      piklist('include_meta_boxes', array(
        'categorydiv'
        ,'slugdiv'
        ,'postcustom'
        ,'pageparentdiv'
        ,'postimagediv'
        ,'excerpt'
        ,'wpseo_meta'
        ,'richtext_excerpt_editor_metabox'
        ,'piklist_meta_motors_max_25ft'
        // Add your custom meta boxes here
      ));
      ?>

      2nd Tab:

      <?php
      /*
      Title: Μηχανοκίνητα > 25ft
      Order: 1
      Flow: Yachts Categories
      Page: post.php, post-new.php, post-edit.php, admin.php
      */
      
      // WordPress Core Meta Boxes
      piklist('include_meta_boxes', array(
        'categorydiv'
        ,'slugdiv'
        ,'postcustom'
        ,'pageparentdiv'
        ,'postimagediv'
        ,'excerpt'
        ,'wpseo_meta'
        ,'richtext_excerpt_editor_metabox'
        ,'piklist_meta_motors_min_25ft'
        // Add your custom meta boxes here
      ));
      ?>

      3rd Tab:

      <?php
      /*
      Title: Φουσκωτά / Ιστιοπλοϊκά
      Order: 2
      Flow: Yachts Categories
      Page: post.php, post-new.php, post-edit.php, admin.php
      */
      
      // WordPress Core Meta Boxes
      piklist('include_meta_boxes', array(
        'categorydiv'
        ,'slugdiv'
        ,'postcustom'
        ,'pageparentdiv'
        ,'postimagediv'
        ,'excerpt'
        ,'wpseo_meta'
        ,'richtext_excerpt_editor_metabox'
        ,'piklist_meta_sails'
        // Add your custom meta boxes here
      ));
      ?>
    • #4257
      Steve
      Keymaster

      What happens? Which tab is default? Please post a screenshot.

    • #4258
      vagelis
      Member

      The default should be the flow with Title “Μηχανοκίνητα < 25ft” but I must click on it to select it.

      Attachments:
      You must be logged in to view attached files.
    • #4267
      Steve
      Keymaster

      When you activate the Piklist Demos, and add a new Demo, is the first tab highlighted?

      SB

    • #4269
      vagelis
      Member

      Yes it is. What am I missing?

    • #4270
      Steve
      Keymaster

      Try removing the editor from the workflow and see if that fixes it.

    • #4272
      vagelis
      Member

      Nop. Same thing. Removed the excerpt just in case but with no luck.

    • #4284
      Steve
      Keymaster

      Was this every resolved?

    • #4285
      vagelis
      Member

      No Steve. Still happening. Hadn’t had time to check it further

    • #4320
      vagelis
      Member

      Update. I’ve completely removed the post editor from function.php but the issuw still persists. I’ve spaces between titles and some Greek, maybe that is what is causing this??

    • #4326
      Steve
      Keymaster

      @vagelis– The easiest way for us to debug is if you zip up everything and email to [email protected]

    • #4327
      vagelis
      Member

      Ok. Sending it to you now.

    • #4338
      Steve
      Keymaster

      @vagelis– Only include the Page parameter in the Workflow header file. Remove it from all the others:
      Page: post.php, post-new.php, post-edit.php, admin.php

    • #4339
      vagelis
      Member

      Great!! Thank you Steve!

    • #4340
      Steve
      Keymaster

      Glad to help. Closing ticket.

Viewing 14 reply threads
  • The topic ‘Default workflow tab not working correctly’ is closed to new replies.