Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@vayu– The Piklist options for the datepicker are the same for every Piklist field. We try not to duplicate information from other codexes, and parameters that go in the
optionsarray are really being created by JQuery UI, not Piklist.Does that make sense?
SteveKeymaster@vayu– We have plans to implement that. The priority for us was getting server-side validation just right because it’s way more secure than Javascript validation.
SteveKeymaster@vayu– The jQuery docs seem to be lacking. Honestly, I Googled it and found the answer. 😉
SteveKeymaster@vayu– Piklist uses the jQuery UI datepicker which is built into WordPress.
You need to pass your translated variables through the options parameter. Here’s an example in French:
piklist('field', array( 'type' => 'datepicker' ,'field' => 'my-date-field' ,'label' => 'Date' ,'options' => array( 'closeText'=>'Fermer', 'prevText'=>'Précédent', 'nextText'=>'Suivant', 'currentText'=>'Aujourd\'hui', 'monthNames'=>['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'], 'monthNamesShort'=>['Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.'], 'dayNames'=>['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], 'dayNamesShort'=>['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], 'dayNamesMin'=>['D','L','M','M','J','V','S'], 'weekHeader'=>'Sem.', 'dateFormat'=>'dd/mm/yy', 'firstDay'=>1, 'isRTL'=>false, 'showMonthAfterYear'=>false, 'yearSuffix'=>'' ) ));You may also be able to load one of these translation files, though I haven’t tried it.
December 29, 2015 at 9:43 pm in reply to: Can not change post_author with piklist field anymore in v9.9.7 #5449
SteveKeymaster@hirschbrat– I just confirmed the bug. We’ll get it fixed in the next version of Piklist.
SteveKeymaster@architect– Welcome to the Piklist community!
This can absolutely be done. Here is a tutorial on how to do this with Categories. Just change
categorytopost_tag.
SteveKeymasterContext and Priority are core WordPress parameters, and are documented on the WordPress codex.
Maybe try context: core.
SteveKeymasterDecember 29, 2015 at 5:56 pm in reply to: Can not change post_author with piklist field anymore in v9.9.7 #5444
SteveKeymaster@hirschbrat– Are you also displaying the AUTHOR meta box on the edit post screen? Piklist is now way more strict and won’t allow that. Remove the author meta box and all should be good.
SteveKeymaster@conkid– WordPress saves term data by ID, not slug or name. So if you want it saved, that can’t change. This a limit on WordPress, not Piklist. You can create another field, that pulls the term ID’s, converts them to slug or name, and save that. It may be a little tricky to implement.
December 29, 2015 at 12:24 pm in reply to: update condition in add_more group not working in v 9.9.7 #5441
SteveKeymaster@hirschbrat– bug confirmed. We’ll get this taken care of during our unit tests and fix in the next version.
SteveKeymaster
SteveKeymaster@conkid– Term ID’s are how WordPress saves it’s data. Everything in WordPress is saved with ID’s.
Term data is showing up for me in the demos, which is set to show_admin_column to true. Feel free to email your code to [email protected] and we’ll take a look.
SteveKeymasterThis is working in our latest beta.
Just remember When you register your post type, you need to specify that it supports revisions. Use the “supports” parameter.
-
AuthorPosts