Forum Replies Created
-
AuthorPosts
-
SteveKeymasterYour code works for me. I just placed it in my themes functions.php file: https://cloudup.com/cTlwcEicwDk
Make sure the plugin is activated.
SteveKeymasterwhat file is this in? And what is the path?
add_filter('piklist_taxonomies', 'package_type_tax'); function package_type_tax($taxonomies) { ...
SteveKeymasterHa! Thank you.
So, your code works for me when I use the default
postcpt. Try changing'post_type' => 'package'to'post_type' => 'post'and see if that works. If so, there may be something going on with your cpt registration.
SteveKeymasterYour function is
package_type_tax, but the filter is callingpackage_tax. They need to match.
SteveKeymasterYou’re welcome!
SteveKeymasterA few things:
1) Piklist doesn’t work with Gutenberg yet. So, if you’re using WordPress 5.0+ you should use the Classic Editor plugin for now: https://wordpress.org/plugins/classic-editor/2) You should also make sure Custom Fields are really gone. Check the “Screen Options” tab and make sure they are not listed there: https://www.wpbeginner.com/glossary/screen-options/
SteveKeymasterYou’re removing custom fields from Pages, not Posts.
Instead of
remove_post_type_support('page', 'custom-fields');, useremove_post_type_support('post', 'custom-fields');
SteveKeymasterYou’re very welcome!
SteveKeymaster@guit4eva– Welcome to the Piklist community! Piklist uses the default WordPress Media Modal. To select multiple images hold down your shift key and click on the images. You should see multiple checkboxes next to each image.
SteveKeymaster@courtens– basing it on that file structure is correct, but in your own plugin. Here are the folder structures when creating your own plugin or using Piklist in a theme: https://piklist.github.io/docs/folder-structure/
SteveKeymaster@additivefx– welcome to the Piklist community!
I just tested with the Media Uploader and it saved the data in the order I selected the images. Please give that a try and let me know what you find.
SteveKeymaster
SteveKeymasterThis should be fixed in v1.0.8, which was just released.
SteveKeymasterIt looks like the first one is just too large for the dropdown. For the second one add
"columns" => 12to the field config -
AuthorPosts