Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@fireartist– in the comment block of the meta-box you are using add this:
template: page_templateThe meta-box will only show up if that page template is selected.
SteveKeymaster@noobie– I was able to take a look much sooner 😉
The Full Page template worked fine for me, it was the default template that didn’t. The reason is because the default template is saved as an empty string.
I updated the tutorial. You just need to update the function that’s being called by “piklist_part_process_callback”.
SteveKeymasterReceived… I’ll try to look at it today.
SteveKeymaster@noobie– please zip by your theme and piklist code and email to [email protected]
We’ll take a look.
SteveKeymaster@noobie– Just to make sure you are using this properly:
1) Add a new page
2) Choose page template
3) Save page
4) Metaboxes should be goneIs that what you are doing?
SteveKeymasterWow! We really messed up on this one. The array has been totally updated and we didn’t do a good job communicating.
I just updated the tutorial and tested, and now it’s guaranteed to work.
SteveKeymasterSorry, about this. We updated some filters and didn’t do a good job documenting it. I updated the tutorial with the new filter names.
Please change the filter names:
piklist_get_file_data TO piklist_part_data
piklist_add_part TO piklist_part_process_callbackLet me know if that works.
SteveKeymasterPlease change the filter names:
piklist_get_file_data TO piklist_part_data
piklist_add_part TO piklist_part_addLet me know if that works.
SteveKeymasterWhich version of Piklist are you using?
SteveKeymasterGreat! Closing ticket
SteveKeymasterThe link is not automatic. Add the link yourself to your code.
August 12, 2017 at 10:43 pm in reply to: Hiding "Private" and "Protected" from titles not working. #8352
SteveKeymaster@elinar– Welcome to the Piklist community!
I just tested with Posts and Pages, with both Private and Protected, and it worked fine. Can you try switching your theme to one of the WordPress default themes and see if that fixes the issue?
SteveKeymaster@noobie– Welcome to the Piklist community!
The built in Piklist Demos have an example of a image field in a widget. You can see the code here:
https://plugins.svn.wordpress.org/piklist/tags/0.9.9.12/add-ons/piklist-demos/parts/widgets/basic-form.php
SteveKeymasterAdd the ‘field’ parameter to a group field saves all the data in one array… which you cannot query because event_date is actually in the database as module_group[‘event_date’].
Remove ‘field’ => ‘module_group’, and the data will save as individual fields, and then you should be able to query against event_date.
-
AuthorPosts