Forum Replies Created
-
AuthorPosts
-
SteveKeymasterGlad you think Piklist is worth 10 stars…but I’m only going to ask you for 5. 😉
Would you mind leaving a 5 star review on WordPress.org?
SteveKeymasterAwesome! I placed that code snippet in the docs for future reference.
Closing this ticket.
SteveKeymasterGreat! Closing ticket.
SteveKeymasterFor a user to edit a form, the url has to look something like this:
http://mydomain.com/my_form/?_post[ID]=84So, you can use the standard PHP $_GET variable to get the ID and then standard WordPress functions to find out who the author is:
if ( isset( $_GET['_post'] ) ) { $post_id = $_GET['_post']['ID']; // Get Post ID $post_author_id = get_post_field( 'post_author', $post_id ); // Get Author ID $user_id = get_current_user_id(); // Get logged in user ID if($user_id == $post_author_id) { // Show form } }
SteveKeymaster@helmiaditya14– We’ll take a look at that and make sure we get it working.
When of the benefits of Piklist is that it’s code-based, so you can use standard WordPress/PHP conditionals if you want:
if( current_user_can('author') ) { // Your form code } else { echo 'You need to be an author to view this form'; }
SteveKeymaster@conkid–I will try to get to writing this later in the week. Did you try copying the code from the Piklist Demos?
SteveKeymaster@slam– Welcome to the Piklist community!
Are you using our latest beta? You can download it here. I believe it’s fixed in this version.
February 10, 2016 at 11:24 pm in reply to: BUG: Group field in custom post type doesn't load properly when editing #5901
SteveKeymasterIt’s odd that another plugin would try to serialize all the meta data.
It you remove
'field' => 'workout_schedule', the field data will be saved individually, not serialized.
SteveKeymasterAdd the Capability or Role parameter to the comment block of the form:
Capability: edit_posts
SteveKeymasterPiklist does everything the WordPress way. You can use the standard WordPress function
wp_dequeue_style()Put this in your theme or plugin.
function my_dequeue_styles() { wp_dequeue_style('piklist-css'); } add_action( 'wp_footer', 'my_dequeue_styles' );
SteveKeymaster@helmiaditya14– You’re not doing anything wrong. This appears to be a bug.
SteveKeymaster@wturrell– Thank you for the fix. This will be updated in the next version of Piklist.
SteveKeymaster@fr3dxel– Welcome to the Piklist community!
Unfortunately, custom tables will not be release until after v1.0 is finished. We are currently working on unit tests and bug fixes, and holding off on new features.
SteveKeymaster@leonardotessaro– With Piklist you don’t have to write any PHP to create a notice. Check out this tutorial.
SteveKeymaster@helmiaditya14– Happy to help. I’m just not clear on the request. What do you need help with, creating the actual taxonomy?
-
AuthorPosts