Forum Replies Created
-
AuthorPosts
-
November 24, 2014 at 1:30 pm in reply to: Sidebar Taxonomy not working when Workflow is active #2843
SteveKeymaster@ehoanshelt– Workflow tabs control the layout of the entire page, including the sidebar. In the include_meta_boxes() function you would list each Div ID you want to show. For this custom taxonomy, WordPress assigned the Div ID “stepsdiv”, so you would us this code in your Workflow file:
piklist('include_meta_boxes', array( 'piklist_meta_client_info' ,'piklist_meta_wordpress' ,'stepsdiv' ));Let us know if you need any more help.
SteveKeymaster@jcrist– That code should work fine, I also added it to the Conditions doc. Thanks for letting us know about site search, it’s been fixed. Let us know if you need any more help.
SteveKeymaster@stevo81989– It would help if you could post some code here, or zip up the files and email to [email protected] this domain. Happy to help you with this.
SteveKeymaster@zoker– We really try to stay within the WordPress UI styles, that’s why the Piklist fields look so great. Subgroups are not part of that so we probably won’t support out of the box.
As for Image Radio buttons you can create this yourself with a little CSS. Here’s some code to get you started.
1) Add the images as the choices in the Radio field:
piklist('field', array( 'type' => 'radio' ,'field' => 'my_radio_image' ,'label' => 'Choose a Style' ,'list' => false ,'attributes' => array( 'class' => 'text radio_images' ,'style' => 'display: none;' ) ,'choices' => array( 'choice1' => '<img width="130px" src="http://path-to-images/image1.png" />' ,'choice2' => '<img width="130px" src="http://path-to-images/image2.png" />' ,'choice3' => '<img width="130px" src="http//path-to-images/image3.png" />' ) ));2) Add some CSS to help. You can use inline CSS if you want directly in the same file as the field is in. Something like this should get you started:
<style type="text/css"> li .radio_images{ float: left; width: 140px; margin-right: 10px; } .radio_images span img { padding: 5px; } .radio_images span img:hover { border: 5px solid #ccc; padding: 0; } input.radio_images[type="radio"]:checked + span img { border: 5px solid #ccc; padding: 0; } </style>Let me know if that works for you.
SteveKeymaster@zoker– If all you want to do is add one metabox to a pages, then Piklist is probably a little much. However, just a warning… once you start using Piklist to add a metabox, you will probably use it to add lots of things. It can be addictive. 😉
SteveKeymasterIt’s on our list of todo’s. Closing ticket…
SteveKeymaster@ajayphp– Try using the Piklist HTML field >
SteveKeymaster@ajayphp– You can’t control the ID, but you can use custom classes, and jQuery can target classes. Or use data-attributes.
SteveKeymaster@ajayphp– Piklist doesn’t have this, but since Piklist does everything the WordPress way… you can always write this yourself.
SteveKeymaster@ajayphp– Since Piklist does everything the WordPress way… you don’t have to do everything with Piklist. Here’s a good tutorial for adding sortable columns to WordPress, without using Piklist.
-
AuthorPosts