Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@vavakco– Piklist doesn’t currently do this… but it’s a great idea. We’ll add it to our list of feature requests.
SteveKeymaster@sharpie– The next version of Piklist will be less resource intensive. We have made drastic improvements.
SteveKeymasterGlad it worked! Closing ticket.
SteveKeymasterLet us know if you need help. Always happy to assist!
SteveKeymasterPiklist doesn’t create folders, you must have created it during the tutorial. What is in your
wp-content/themes/striking_r/piklist/folder?
SteveKeymasterBoth @jcrist and I left something out. When using the standard WordPress function get_post_meta, it returns the value in an array by default. This is mentioned in the official Codex. If you don’t want an array returned, you need to set $single to true.
So, you code should actually look like this:
<?php $font_awesome_icon = get_post_meta(get_the_ID(), 'font-awesome-icon', true); ?><i class="fa <?php echo $font_awesome_icon; ?>"></i>Let us know if that works for you.
SteveKeymasterYou need to decide where you want your code to go… in your theme, or in a plugin. Usually you want it in a plugin, so it’s portable and you can then use any theme.
Does that makes sense?
SteveKeymasterGreat! Closing ticket.
SteveKeymasterDid this work the way you wanted it?
SteveKeymasterThanks so much!
August 3, 2015 at 10:51 am in reply to: Suggestion: Be able to add metaboxes field to a specific page #4118
SteveKeymasterThe
Templateparameter is the file name of the template WITHOUT “.php”:Template: my-templateLet us know if that works for you.
SteveKeymasterThe next major version of Piklist that is released to WordPress.org will have this feature. So, you will just have to upgrade for it to work.
We’re so happy you love Piklist. Would you mind leaving a quick 5 Star review on WordPress.org? It really goes a long way to helping the project.
August 3, 2015 at 10:44 am in reply to: Suggestion: Be able to add metaboxes field to a specific page #4115
SteveKeymaster@aazcast– Welcome to the Piklist community!
Which feature isn’t working? ID, TEMPLATE or another?
SteveKeymaster@vavakco– Welcome to the Piklist community!
By default Piklist saves everything on a per row basis. This makes it possible to search for this data.
The only way to roll everything up into an array is a group field, and a group field can contain just one field if you want.
Try this code. The field should look exactly like you want it and save everything in an array:
piklist('field', array( 'type' => 'group' ,'field' => 'gallery_field_images' ,'label' => 'New Image' ,'fields' => array( array( 'type' => 'file' ,'field' => 'images' ,'label' => 'New Image' ,'options' => array( 'modal_title' => 'New Image' ,'button' => 'New Image' ) ) ) )); -
AuthorPosts