Forum Replies Created
-
AuthorPosts
-
SteveKeymasterPiklist doesn’t do this for you. The way we would do it, is to manipulate the $menu and $submenu globals. Here’s a good tutorial >
SteveKeymasterHi Sean– We’ve never used metabox.io. Maybe someone else in the community can give some feedback.
SteveKeymaster
SteveKeymasterCan you please test the latest beta and let us know if it fixes the issue.
SteveKeymasterAny tutorial you find on converting a number field to currency would work
Here’s one I found: http://jsfiddle.net/uzbjve2u/. You don’t need the javascript. Pass min and max as attributes in the Piklist field.
For a field that not’s editable you can use the standard HTML attribute
readonly:
https://www.w3schools.com/tags/att_input_readonly.asppiklist('field', array( 'type' => 'text' ,'field' => 'name' ,'label' => 'Name' ,'attributes' => array( 'readonly' => 'readonly' ) ));
SteveKeymasterCreating a theme template that’s compatible with all themes is not that easy.
Piklist automatically registers a shortcode when you create a form. That’s the most flexible way to do. Let your users add a shortcode.
If you want to add a page template from your plugin, then this tutorial looks good >
SteveKeymasterPassing an array should work.
If you can’t get that to work, you can use the WordPress function register_taxonomy_for_object_type()
SteveKeymasterYou can build this with Piklist, but it’s a little complicated. You would need:
1) A field to search for Post Types: this already exists in the Piklist Demos, under the “Relate” tab. It’s checkboxes, but you can easily change it to a select. Then integrate Select2 or Chosen with that Piklist field.
2) Add new Post: Again, under the “Relate” tab, in “Advanced” you can add a new post.
It will take some work to make it work exactly like Tags. You may want to be flexible on functionality.
SteveKeymasterI’m not clear on what you’re asking. However, you may want to check out the RELATE tab under Piklist Demos. We relate some posts there.
SteveKeymaster‘piklist-demo’ is the name of the plugin. It’s used if you want your plugin or theme to be translatable into another language. You can learn more here >
If this is for an internal project, and you won’t need translations, then you can use:
,'label' => 'Text'
SteveKeymasterHi Sean– I just added some information on creating Piklist add-ons in the docs. Let me know what you think.
SteveKeymasterGlad you’re enjoying using Piklist. One thing Kevin and I made sure of was that Piklist did everything the WordPress way, and also saved data normally. Usually, any tutorial you find on the web, on getting options, will work. It doesn’t have to be a Piklist specific tutorial.
SteveKeymasterGood luck! Let us know if you need any help
SteveKeymasterWordPress saves settings in an array. And when you set a field group in Piklist, those fields are saved in an array… so you’re saving a multidimensional array. Which is perfectly legit, but a little more difficult to get data out of.
You have two choices:
1) Use this to get options from your current field:$text_field = $theme_options['cpt_list']['common_features'];
2) Or get rid of,'field' => 'cpt_list', which now saves all your settings in a standard array. There are certainly cases where you want to store data multidimensionally, but based on the field you submitted it doesn’t look like you need it. You can then use:$text_field = $theme_options['common_features'];Either way is perfectly acceptable.
-
AuthorPosts