Forum Replies Created

Viewing 15 posts - 1,321 through 1,335 (of 2,964 total)
  • Author
    Posts
  • in reply to: Setting Textarea Rows #4959
    Steve
    Keymaster

    @bubdev– Welcome to the Piklist community!

    Congratulations! You found a small bug with our editor field. Luckily it’s easy to fix.

    1) Open this file in the Piklist plugins folder: piklist/parts/fields/editor.php. It should look like this >

    2) Remove this line: ,'editor_height' => 180, and save. You should be all set.

    The reason this happened is because Piklist set a default for editor_height. The codex for wp_editor states that if editor_height is set, then it will be used instead of textarea_rows.

    We’ll make sure this is removed from the next version of Piklist.

    in reply to: Build a Contact Form with Piklist 0.9.9.6? #4952
    Steve
    Keymaster

    @kattagami– You would use the Piklist hook piklist_save_field-{$scope}

    Here’s how to get started:
    1. Create your frontend form
    2. You still have to define the scope for each field, however, since you’re not saving the data choose something unique like contact. 'scope' => 'contact'
    3. In your main plugin file include this code:

      function my_contact_form_email($fields)
      {
        piklist::pre($fields);
        die();
      }
      add_action('piklist_save_field-contact','my_contact_form_email');
    

    When you save your form Piklist will trigger this function and you will see the array of field data that you have access to. Just loop through the array and create your mailer.

    Let us know if this works for you.

    in reply to: not saving meta – piklist 0.9.9.6 #4949
    Steve
    Keymaster

    @tatamata— I’m not 100% sure what Page 1 and Page 2 mean. It might be better if you zip up your plugin or theme and email to us at [email protected]

    in reply to: Admin Bar greeting doesn't work #4948
    Steve
    Keymaster

    You may have some corrupted data, so you may want to try and removing the setting.

    -Take note of any WP Helpers options you have.
    -Open the wp_options table in your database and remove this setting: piklist_wp_helpers
    -Try saving again and see if it works now.

    in reply to: adding workflows causes sidebar meta-box to disappear #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
    
    in reply to: put Yoast SEO into a tab? #4945
    Steve
    Keymaster

    @mcmaster– Piklist can do it…in version 0.9.9.8. Hoping to release it soon.

    Then you will create a new file in your meta-boxes folder and include code like this:

    
    		
    	
    in reply to: Is it possible to hook a cpt to a custom admin page with piklist #4944
    Steve
    Keymaster

    In the latest beta take a look at this file:
    wp-content/plugins/piklist/add-ons/piklist-demos/parts/forms/new-post-with-validation.php

    This is a form that creates a new post. You’ll notice the first field is hidden but sets the post_type to piklist_demo. You would just change that to dog.

     piklist('field', array(
        'type' => 'hidden'
        ,'scope' => 'post'
        ,'field' => 'post_type'
        ,'value' => 'dog'
      ));
    

    To include this form in your admin-page, you would use this code:

      piklist('form', array(
        'form' => 'new-post-with-validation' // name of the file without .php
      ));
    

    Does that make sense?

    in reply to: What's this? #4942
    Steve
    Keymaster

    All it does is tell you where the code is located to build that widget, meta-box, etc.

    You don’t need this for your code. In the next version of Piklist I’ll include a comment.

    See the attached screenshot.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Setting page on 0.9.9.6 with new flow #4941
    Steve
    Keymaster

    @erikkubica– Real sorry for the confusion. Hopefully, this is the last time we manage two different versions of Piklist. Here’s the doc for Workflows in 0.9.9.x

    Essentially, you do three things:
    1) Create a Workflow Header file: This goes in the /workflows/ folder, and tells the entire Workflow which pages to display on.

    2) Create a Workflow tab: This also goes in the /workflows/ folder, and is just a tab assigned to the header.

    3) Assign your settings sections: These stay in your /settings/ folder. You should just have to add two parameters to the commment block: Tab and Flow. Here’s an example:

    Tab: My Tab
    Flow: My Flow
    

    Does that make more sense?

    in reply to: Polyfill for 0.9.9.6 data structure changes? #4938
    Steve
    Keymaster

    @ndmurph04– Sorry this is causing you issues. The Add-More array change is big, and once you start working with it, you will love it. You can easily just pull the field and loop through it like a normal array.

    Without seeing your code it’s hard to debug, but my guess is you should remove any [0] keys you have. So if you are looking for this in your code: $my_field[0], just change it to this: $my_field.

    That alone has helped many users.

    Let us know if you still need help.

    in reply to: not saving meta – piklist 0.9.9.6 #4936
    Steve
    Keymaster

    @tatamata– If you change the choices array to something like this:

    'choices' => array(
    'one' => 'one'
    ,'two' => 'two'
    )
    

    Does it work?

    If so, then you are not constructing your array properly.

    in reply to: Admin Bar greeting doesn't work #4924
    Steve
    Keymaster

    @wickyd– If you type something else into that field and save, does the admin bar greeting change?

    in reply to: WP Helpers broken on Wampserver #4923
    Steve
    Keymaster

    Great! Closing ticket

    in reply to: Grouping Fields – Noob Question #4922
    Steve
    Keymaster

    Great. Closing ticket. Let us know if you need more help.

    in reply to: Admin Bar greeting doesn't work #4917
    Steve
    Keymaster

    I just pushed a new version of WP Helpers, v1.9.2. Please let me know if it fixes your issue.

Viewing 15 posts - 1,321 through 1,335 (of 2,964 total)