Forum Replies Created

Viewing 15 posts - 1,576 through 1,590 (of 2,964 total)
  • Author
    Posts
  • in reply to: Categories field in quick edit not showing #4221
    Steve
    Keymaster

    Shouldn’t it be singular? “Add New Yachts” is not correct.

    You can also manually specify the labels if you like. Since Piklist does everything the WordPress way, you can pass the labels parameter, as defined in the WordPress codex.

    Instead of:
    'labels' => piklist('post_type_labels', 'Yacht')

    Use:

    $labels = array(
      'name' => __( 'Yachts'),
      'singular_name'  => __( 'Yacht'),
    etc... 
    
    
    'labels' => $labels
    

    Does that make sense?

    in reply to: adding repeatable div, second attempt #4219
    Steve
    Keymaster

    @giec– Glad you’re making progress on this.

    1) Piklist “sort of” supports only showing the fields in the admin if the page template is selected. Use the template parameter.
    2) To show the data, you are going to have to use this doc, and replace custom-div-div_one.php

    Let me know if that makes sense.

    in reply to: Categories field in quick edit not showing #4218
    Steve
    Keymaster

    @vagelis– I just tested your code and it works great for me. Try disabling other plugins and see if that fixes the issue.

    in reply to: datepicker & add_more – all entries have the same date #4213
    Steve
    Keymaster

    Good find! Please send us the link to that plugin so we can continue to test against it.

    in reply to: datepicker & add_more – all entries have the same date #4211
    Steve
    Keymaster

    Please keep us updated on what you find.

    in reply to: datepicker & add_more – all entries have the same date #4209
    Steve
    Keymaster

    @anagram– That’s odd. I just tested and it worked fine. Let’s try a few things.

    1) Make sure the field name is unique and the only field with this name. Try changing it to anagram_recurrence_dates.
    2) Remove the scope parameter. Piklist can auto detect.
    3) Verify you are running the latest version of Piklist. Version 0.9.4.27

    If none of these fix the issue, please zip up all your code and email to [email protected]

    in reply to: datepicker & add_more – all entries have the same date #4205
    Steve
    Keymaster

    @anagram– For a simple add-more like this, the data is stored in a one-dimensional array. You can just pull the data and loop through it, like this:

    $dates = get_post_meta(get_the_id(), 'recurrence_dates');
    
    foreach ($dates as $date => $value)
    {
      echo $value;
    }
    

    Let me know if that works for you.

    in reply to: displaying widget upload field front-end #4203
    Steve
    Keymaster

    Since you can upload multiple files, the file upload file stores multiple image IDs in an array. You’re getting an error because you’re trying to echo out an array.

    You need to pull the image IDs and then get the url. This doc gives a good explanation >

    Here’s how to display the images you uploaded:

    <?php $image_ids = $settings['tc_logo_widget']; // Get all the IDs?>
      <?php foreach ($image_ids as $image) : // Loop through all the IDs ?>
        <img src="<?php echo wp_get_attachment_url($image);?>" />
      <?php endforeach; ?>
    
    in reply to: Create CPT on frontend #4199
    Steve
    Keymaster

    @bicho44– So sorry! I thought you were already on the list. I just sent.

    in reply to: Create CPT on frontend #4197
    Steve
    Keymaster

    @novfr– Welcome to the Piklist community!

    I just emailed you our beta with instructions on front end forms. We’re excited for you to test them out.

    in reply to: How to enable oEmbed for CPTs developed using Piklist? #4196
    Steve
    Keymaster

    @fredrikcarlen– Welcome to the Piklist community!

    Why do you think this is a hack? Looks fine to me.

    in reply to: More add_more woes… #4195
    Steve
    Keymaster

    @Kenny– Welcome to the Piklist community!

    I’m not perfectly clear on what you’re asking. Can you post a screenshot?

    in reply to: Custom Form Processing #4191
    Steve
    Keymaster

    @intersynergy– Welcome to the Piklist community!

    Please be a little more specific with your issue.

    in reply to: Double Fields Piklist Metaboxes #4187
    Steve
    Keymaster

    Great. Closing Ticket!

    in reply to: Double Fields Piklist Metaboxes #4185
    Steve
    Keymaster

    If you use custom post statuses, then it will say “save”, since you may not be “publishing”.

    Do you need this?

    ,'status' 		=> array(
            'draft' 		=> array(
              'label' 		=> 'Inactive',
              'public' 	=> true
            ),
            'active' 		=> array(
              'label' 		=> 'Active',
              'public' 	=> true
            ),
            'published'   => array(
              'label'     => 'Published',
              'public'    => true
            )
          )
    
Viewing 15 posts - 1,576 through 1,590 (of 2,964 total)