Forum Replies Created

Viewing 15 posts - 2,206 through 2,220 (of 2,964 total)
  • Author
    Posts
  • in reply to: Piklist and CPU use #2545
    Steve
    Keymaster

    @ralmestro– If Piklist is a core part of your site, it would make sense that is uses more resources. I just ran it on a site using Piklist, BuddyPress and 23 other plugins activated. The results were pretty shocking 😉

    Attachments:
    You must be logged in to view attached files.
    in reply to: Any way to enter into a workflow automatically? #2542
    Steve
    Keymaster

    @wpkonsulterna– Just some clarification:

    Do you want the title IN the workflow or the title OUT?

    in reply to: Any way to enter into a workflow automatically? #2539
    Steve
    Keymaster

    @wpkonsulterna– Yes, this can be done. Let me write up a tutorial. Will have it done by tomorrow.

    in reply to: Problem with widget on my local installation #2538
    Steve
    Keymaster

    @kattagami– There’s a bug in Piklist where it’s looking for the file plugin.php as the main plugin file. Change your main plugin name from test.php to plugin.php and it will work. We’ll fix in the next version.

    in reply to: Add_More and Default Values #2537
    Steve
    Keymaster

    @Angelos– Welcome to the Piklist Support Forums!

    Currently, default values for our Add-Mores only work on the initial field. We have it on our list to make it work on every add_more.

    Also, instead of using "style" => "width:90%;", you may want to try the Piklist grid system. Everything lays out beautifully, and it’s also responsive.

    Your code would look like this:

    piklist('field', array(
        'type' => 'group'
        ,'field' => 'comment_div'
        ,'label' => __('Comments') 
        ,'add_more' => true
        ,'fields' => array(
            array(
              'type' => 'text'
              ,'field' => 'comment_author'
              ,'label' => __("From")
              ,'value' => $current_user->display_name
              ,'columns' => 12
              ,'attributes' => array(
                "disabled" => true
              )
            )
            ,array(
              'type' => 'text'
              ,'field' => 'comment_time'
              ,'label' => __("At")
              ,'value' => date('l jS F Y')
              ,'columns' => 12
              ,'attributes' => array(
                "disabled" => true
              )
            )
            ,array(
              'type' => 'textarea'
              ,'field' => 'support_ticket_comment'
              ,'label' => __("Comment text")
              ,'template' => 'field'
              ,'columns' => 12
              ,'value' => ''
              ,'attributes' => array(
                'class' => 'comment'
                ,'cols' => '80'
                ,'rows' => '3'
              )
              ,'on_post_status' => array(
                'value' => 'lock'
              )
            )
        )
      )
    );
    

    One more thing, I noticed you have the on_post_status parameter set. I doubt you want that. We placed it in the Demos to show off the functionality. Here is a tutorial on using on_post_status, which explains how it works.

    in reply to: How can I post custom post types programmatically? #2532
    Steve
    Keymaster

    @prasenjit– We don’t have a helper function for this. It would only be needed for our Add-More fields, anyway. Since Piklist does everything the WordPress way, what you’re doing here would work fine.

    in reply to: How can I post custom post types programmatically? #2530
    Steve
    Keymaster

    @prasenjit– Happy to help, but can you provide a little more detail? What exactly are you trying to do?

    in reply to: Problem with widget on my local installation #2523
    Steve
    Keymaster

    @kattagami– Just fixed WP.org… thanks for letting me know.

    in reply to: Problem with widget on my local installation #2521
    Steve
    Keymaster

    @kattagami– I’m guessing Piklist is not detecting the path correctly on this type of setup. Can you activate Demos and get them working?

    in reply to: Piklist in Pages #2520
    Steve
    Keymaster

    @gary–

    Just verifying… you’re using this tutorial, correct?

    A few things:
    1) This code goes in a file (any name you want), in the /meta-boxes/ folder. See this doc for the full path of this folder.
    2) The file should also contain a comment block at the top. You can see how this looks here.
    3) Replace ,'field' => 'field_name' with ,'field' => 'post_content'. Since you are replacing the default WordPress field, you need to use the WordPress field name which is post_content.

    Let me know if this works for you.

    in reply to: Are Validations inclusive or exclusive? #2518
    Steve
    Keymaster

    @jason– You were looking at a tutorial, the full docs are here> Conditions have a relation parameter.

    in reply to: Disable drag and drop reorder on add_more fields #2513
    Steve
    Keymaster

    @kattagami– We’ve discussed this internally, and it’s on our feature list, but it’s currently not possible.

    in reply to: Querying Data saved #2511
    Steve
    Keymaster

    @seanster– In most cases Piklist does NOT save data as an array. The exceptions are add-more fields, and grouped fields with a field parameter defined.

    For User Meta, you can just use the standard WordPress function get_user_meta().

    I just checked wp-admin/user-edit.php and there are no actions to remove those items. You will have to do it with CSS.

    in reply to: Querying Data saved #2509
    Steve
    Keymaster

    @seanster– You can use any standard WordPress function to grab data from the db.

    get_post_meta

    get_post_custom

    get_option

    etc.

    What sort of data do you want to retrieve?

    in reply to: wp-helpers.php #778 expects param 1 to be an a #2507
    Steve
    Keymaster

    @catacaly– We just pushed version 1.5.8 to WordPress.org with this fix. Thanks for letting us know!

    (I like that option as well)

Viewing 15 posts - 2,206 through 2,220 (of 2,964 total)