Forum Replies Created
-
AuthorPosts
-
August 12, 2017 at 10:30 pm in reply to: Conditionally Shown Fields: Saved value reset when condition changes #8349
SteveKeymaster@riotxoa– Welcome to the Piklist community!
This is currently the expected behavior on conditional fields. We have thought about adding a parameter to keep the value, but that is still on our backlog.
SteveKeymasterLeo– I really think you need to do something like this:
When the user clicks on a post to edit it, and a query parameter in the url with the post id.
Example: http://www.domain.com/form/?form_id=56Then do something like this in your form code:
if ( isset( $_GET[‘form_id’] ) ) :$post = $_GET[‘form_id’];
else :
$post = null;
endif;
SteveKeymasterSorry for the confusion, but $post_id is not a valid WordPress parameter, you need to set it by passing the actual $post->ID.
When the user clicks on a post to edit it, and a query parameter in the url with the post id.
Example: http://www.domain.com/form/?form_id=56Then in your form get the form_id query parameter using $_GET, and pass it to $post_id.
SteveKeymasterThis should be fixed in our latest beta >
SteveKeymasterThe demo form should give you all the info you need to save fields.
SteveKeymaster1) What version of Piklist are you running now?
2) What version were you running before?
3) Can you send a screenshot of the boxes with screen options open?
SteveKeymaster1) to show the current values in a form, get the Post ID and add this parameter to each field:
'object_id' => $post_id2) To have private data check to see if the current user is the author, if it is show the data. This is standard WordPress
SteveKeymaster1) I would save the data as a post not user. Make the user the author of the post and then you will have access to all the WordPress author functions.
2) look in the folder : add-ons/piklist-demos/parts/forms/ for examples
3) examples are in the /forms/ folder mentioned in #2
4) The data is just a normal post. Use the standard WordPress loop to grab the data.
SteveKeymasterIt looks like you don’t have one of the legacy tables anymore. Let’s try this:
1) Delete your current version of Piklist
2) Go to the Piklist download page, choose version 0.9.4.31, download and install.
3) Activate version 0.9.4.31, and the deactivate it. Just the act of activating will create the table.
4) Now upgrade Piklist to the latest version and try running the updater again.
SteveKeymasterPlease temporarily remove all non-piklist code from your Piklist parts/ files and rerun the updater. Let us know if that works.
SteveKeymasterWhat’s on line 14 of purchase-order-number.php?
SteveKeymasterI just thought of an idea…
1) Create a separate Piklist FORM for each step, in the /forms/ folder
2) Save each step as a hidden field in each form. So, when they save the second form, the meta_key “step” is set to “2”
3) Use a Piklist SUBMIT field as the button.
4) As you save each form use a query parameter to set which form to load and what then next/previous forms are.Hope that helps!
SteveKeymaster@platinumwizard– Sounds like a fun project!
1) You can set custom statuses when you register your post type >
2) I recommend you add a button with the necessary JS, the same way you would without Piklist.
3) When you register a post type, WordPress should automatically create a list table for your post type.
June 28, 2017 at 10:11 am in reply to: Add featured images to feed generating a relative url in WordPress4.8 #8296
SteveKeymasterYou can see the changeset here: https://plugins.trac.wordpress.org/changeset/1686639
wp_get_attachment_image_src()returns the full path unless it’s been filtered.Try a few things:
1) Edit and save any post to reset the feed.
2) Deactivate all plugins and repeat step 1
3) Switch to the WordPress default theme and repeat step 1Let me if any of these work.
SteveKeymasterThis is supported in our beta: https://github.com/piklist/piklist/releases/tag/0.10-beta.2
use
NEW: TRUEin the header -
AuthorPosts