Forum Replies Created
-
AuthorPosts
-
SteveKeymasterYou can use the standard WordPress function
current_user_can(), just wrap thepiklist_taxonomiesfilter in a conditional:if (current_user_can('edit_post')) { add_filter('piklist_taxonomies', 'your_taxonomy_function'); }This is untested but should work. If it doesn’t, then move the conditional into
your_taxonomy_function().
SteveKeymasterHow do you want to use User Roles and Taxonomies? Hide/show taxonomy based on user role?
SteveKeymasterThis is really nice. Good job!
SteveKeymasterThanks for sending over this explanation.
I think you have a very cool idea, but it may be more complicated then you need. Why not put the Color Picker as a custom field on the ceu_clientes taxonomy. When you want to assign RED to “The Client”, just edit “The Client” and choose the color from the color picker.
Piklist then has a function to pull term_meta:
piklist(get_term_custom,$term_id);Use it like this:
$termmeta = piklist(get_term_custom,$term_id);Then user print_r to see the data:
print_r($termmeta);You should see an array of fields and data, which should help you pull the correct field.
SteveKeymasterNothing came through. Please post again.
SteveKeymasterI’m just a little confused. Is ceu_clients a dropdown of client names associated with the post, and then ceu_colors would be a dropdown of colors?
Or do you just want to associate a Color with a dropdown of client names?
SteveKeymasterCan you post your Taxonomy code?
SteveKeymaster@txhorselady– The first thing you should do is see how WordPress is saving the values. Something like this will help you visualize the data:`$meta = get_post_custom($post_id);
print_r($meta);`Once you see the output, you can grab it properly.
This is standard WordPress, using a standard WordPress function… Piklist doesn’t do anything accept help you create the field easily. That’s one of the things that makes Piklist awesome.
SteveKeymaster@nateskin– Your code is fine. Piklist has a bug when multiple fields are conditionally based on one field. We’re working on a fix.
SteveKeymaster@johnmcalester– Piklist currently does not support nested Select fields. This is something we can put on our roadmap. Can you give us an example of how you are using it?
SteveKeymasterIs the issue with the standard WordPress tabs, are fields you built with Piklist?
SteveKeymasterYES… we’re still here.
YES… we’re still coding.
YES… the next version is almost ready.😉
June 12, 2013 at 4:12 pm in reply to: Piklist bug which seems to be effecting the WP Media Uploader #844
SteveKeymasterClosing this ticket!
-
AuthorPosts