Forum Replies Created
-
AuthorPosts
-
SteveKeymasterWe updated the relate code recently. The docs go over how to use relate in detail:
https://piklist.github.io/docs/tutorials/relationships/working-with-field-relationships/
SteveKeymasterIf you generate the buttons after you save, then you can pull the array, count them and assign a unique ID.
If you want to generate them before you save, you will need to write javascript to identify the position.
SteveKeymasterJuly 19, 2018 at 1:42 pm in reply to: how to convert post field post_content as normal content area instead of editor #9133
SteveKeymasterGlad it worked out. Closing this ticket.
July 19, 2018 at 1:03 pm in reply to: Undefined index: user_id in /…/piklist/includes/class-piklist.php on line 1098 #9132
SteveKeymasterI was able to reproduce and put in a pull request to fix this:
https://github.com/piklist/piklist/pull/109
SteveKeymasterThis is currently not possible but a great idea. I will add this to our features list.
SteveKeymasterThis reply has been marked as private.
SteveKeymasterThat works too!
Closing this ticket.
SteveKeymasterSince that function is already returning an array, it’s super easy:
piklist('field', array( 'type' => 'select' ,'field' => 'top_level_menu' ,'label' => 'Choose Menu' ,'choices' => get_top_level_menu_items() ));
SteveKeymasterSara– Glad you figured it out. There’s an example of this in the Piklist Demos for future reference.
Closing this ticket.
SteveKeymasterSara– Glad you figured it out. There’s an example of this in the Piklist Demos for future reference.
Closing this ticket.
SteveKeymasterGreat! I’m going to close this ticket.
SteveKeymasterThis reply has been marked as private.
SteveKeymasterWordPress has a
media_buttonsaction that we hook into:I suggest you ask the SiteOrigin team if they have the equivalent. And then use something like this:
https://github.com/piklist/piklist/blob/develop/includes/class-piklist-shortcode.php#L72
SteveKeymasterI’m not 100% clear on your question. Piklist taxonomies are essentially WordPress taxonomies with extra options.
If data is not making it the terms table, make sure your code is in the
/termsfolder. -
AuthorPosts