Forum Replies Created
-
AuthorPosts
-
SteveKeymasterI believe it’s because they are rendered before the default custom fields meta box
SteveKeymaster@mcmaster– This is normal WordPress behavior. If you want the custom-fields meta box and use custom fields you need the is_protected_meta filter.
The next version of Piklist will have this built in.
June 6, 2016 at 1:27 pm in reply to: Piklist 0.9.4.31 : the WordPress customizer doesn't work anymore #6600
SteveKeymaster@souhail5– Welcome to the Piklist community!
Please upgrade to our latest beta. It will fix the issue.
June 4, 2016 at 2:28 pm in reply to: Possible to add meta-box in Media Library (post type "attachment")? #6589
SteveKeymasterEverything you build with Piklist is easily moved to another section.
SteveKeymasterThis reply has been marked as private.June 3, 2016 at 10:56 pm in reply to: Possible to add meta-box in Media Library (post type "attachment")? #6584
SteveKeymaster@thor– This is currently not possible, but a great idea. Will add to our feature list.
SteveKeymaster@ralmestro– Never saw this before. Can you zip up your code and email to [email protected] ?
SteveKeymasterOne of the best parts of Piklist, is that you don’t have to do everything the Piklist way… you can mix in standard PHP and jQuery.
Closing ticket
SteveKeymasterWhat happens when you try to save “0”?
SteveKeymaster@bicho44– You can also use a little jquery to hide the field. This code will HIDE the field, which means it is still rendered and will save data. So make sure you set a default value and check for it in your code.
Here’s a quick way of doing it:
1) Wrap your radio field in a div. For example:<div id="radio-hide"> <?php piklist('field', array( 'type' => 'radio' ,'field' => 'radio_choice' ,'label' => 'Please choose', ,'value' => 'no' // sets default value ,'choices' => array( 'yes' => 'Yes' ,'no' => 'No' ) )); ?> </div>2) Then add some jquery under that:
<script> jQuery(document).ready(function( $ ) { $('select').on('change', function() { if(this.value == 'page-templates/front-page.php') { $( "#radio-hide" ).hide(); } else { $( "#radio-hide" ).show(); } }) }); </script>Change
page-templates/front-page.phpto the page template you want.
SteveKeymaster@bicho44– That requires a little javascript and is on the feature list. We appreciate your pushing. 😉
SteveKeymaster@conkid / @bicho44– I just updated the documentation. Looks like there was a formatting issue with the code. It should be easier to read and understand now. Still happy to do a Skype call if you like.
SteveKeymaster@conkid / @bicho44– I’m sorry your frustrated. Would you have time to go through this with me on Skype? If we walk through it together it will help me make the documentation better.
Please email me at [email protected] and we can set up a time to do this.
-
AuthorPosts