Forum Replies Created
-
AuthorPosts
-
SteveKeymasterShouldn’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?
SteveKeymaster@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.phpLet me know if that makes sense.
SteveKeymaster@vagelis– I just tested your code and it works great for me. Try disabling other plugins and see if that fixes the issue.
August 15, 2015 at 12:05 pm in reply to: datepicker & add_more – all entries have the same date #4213
SteveKeymasterGood find! Please send us the link to that plugin so we can continue to test against it.
August 15, 2015 at 11:14 am in reply to: datepicker & add_more – all entries have the same date #4211
SteveKeymasterPlease keep us updated on what you find.
August 15, 2015 at 10:57 am in reply to: datepicker & add_more – all entries have the same date #4209
SteveKeymaster@anagram– That’s odd. I just tested and it worked fine. Let’s try a few things.
1) Make sure the
fieldname is unique and the only field with this name. Try changing it toanagram_recurrence_dates.
2) Remove thescopeparameter. Piklist can auto detect.
3) Verify you are running the latest version of Piklist. Version 0.9.4.27If none of these fix the issue, please zip up all your code and email to [email protected]
August 15, 2015 at 9:07 am in reply to: datepicker & add_more – all entries have the same date #4205
SteveKeymaster@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.
SteveKeymasterSince 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; ?>
SteveKeymaster@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.
August 13, 2015 at 10:44 am in reply to: How to enable oEmbed for CPTs developed using Piklist? #4196
SteveKeymaster@fredrikcarlen– Welcome to the Piklist community!
Why do you think this is a hack? Looks fine to me.
SteveKeymaster@Kenny– Welcome to the Piklist community!
I’m not perfectly clear on what you’re asking. Can you post a screenshot?
SteveKeymaster@intersynergy– Welcome to the Piklist community!
Please be a little more specific with your issue.
SteveKeymasterGreat. Closing Ticket!
SteveKeymasterIf 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 ) ) -
AuthorPosts