Forum Replies Created

Viewing 15 posts - 1,246 through 1,260 (of 2,964 total)
  • Author
    Posts
  • Steve
    Keymaster

    Two things you will need to update:

    FORM:
    Your scope should be post_meta, because that’s where the data is being saved.
    ,'scope' => 'post_meta'

    You will need to include a hidden field to tell Piklist which CPT to save against:

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

    You can see a sample of this in:
    plugins/piklist/add-ons/piklist-demos/parts/forms/new-post-with-validation.php

    DISPLAY THE DATA:
    One of the big changes with v0.9.9x is that you no longer need all that code to retrieve you data. You can easily pull it like a standard PHP array and loop through it.

    Try this:

    $upload_orders = get_post_meta($post->ID, 'upload_order_attch', false);
    
    foreach ($upload_orders as $upload_order => $value)
    {
      echo $value;
    }
    

    Let us know if that works for you.

    in reply to: Getting Related Posts #5165
    Steve
    Keymaster

    Ha! Closing ticket.

    in reply to: Where does get_option code go? #5164
    Steve
    Keymaster

    @dougsandlin– In most cases you can use standard WordPress functions to retrieve and manipulate your data with Piklist. One of the goals Kevin and I had when creating Piklist, was not to force users to learn a bunch of new functions.

    You can useget_option() with Piklist just like you would use it with any other option.

    Glad you figured it out.

    Closing ticket.

    in reply to: Attachment is too large in Admin #5163
    Steve
    Keymaster

    @azizultex– Can you post your field code, please?

    in reply to: Basic front end help #5162
    Steve
    Keymaster

    Great. Closing ticket.

    in reply to: Taxonomy not working with forms #5161
    Steve
    Keymaster

    @spsenthilraja– Welcome to the Piklist community!

    Congratulations, you’ve found a bug with the front-end forms. We’ll get it fixed in the next version of Piklist.

    in reply to: Attachment is too large in Admin #5153
    Steve
    Keymaster

    It’s under the standard WordPress settings

    in reply to: Getting Related Posts #5150
    Steve
    Keymaster

    @anthonyabraira– I split your question off to a separate topic since it had nothing to do with the original one. Please try to keep each reply relevant with the original topic.

    Piklist uses the standard WordPress function get_posts to retrieve related posts. You can learn more here.

    in reply to: Basic front end help #5149
    Steve
    Keymaster

    Can you post the field code for ‘sponsor’?

    in reply to: Piklist Demos conflict with media edit screen #5140
    Steve
    Keymaster

    @bubdev- the demos are supposed to modify the media screen. They also modify the user profile pages.

    in reply to: Where does get_option code go? #5137
    Steve
    Keymaster

    @dougsandlin Where do you want to show/use this setting?

    get_option is a WordPress function not a Piklist function.

    If the setting will control something in your then, then the code will probably go there.

    Let us know what you want your setting to do?

    in reply to: Bug 0.9.9.6: Group – AddMore fields #5135
    Steve
    Keymaster

    Fixed in the next version of Piklist

    in reply to: [0.9.9.6] Add more problem #5134
    Steve
    Keymaster

    This is fixed in the next version of Piklist

    in reply to: Featured Image Showing Full Size in Sidebar #5130
    Steve
    Keymaster

    The file field gets the image dimensions from wp_get_attachment_image_src. You may want to check what’s being passed here.

    in reply to: Attachment is too large in Admin #5129
    Steve
    Keymaster

    In SETTINGS > MEDIA, what dimensions are set for the Thumbnail size?

    If empty, please set to 150 and see if that helps.

Viewing 15 posts - 1,246 through 1,260 (of 2,964 total)