Forum Replies Created
-
AuthorPosts
-
morganrtMemberHi @steve,
I sent a zip file, but got an error so I resent email with a link to Google Drive. Any trouble accessing the code, please let me know here or by email.Thanks very much,
Morgan
morganrtMemberHello,
Thanks for the reply. I was using the shortcode because all the piklist fields are in a file in the metabox folder. I’ve been trying to keep things as close as possible to the documentation.Before I heard from you, I found that the shortcode with the comment_form action worked when placed in my plugin file.
function my_comment_form() { echo '<p class="comment-form-comment"> '. do_shortcode('[piklist_form form="comment_form-metabox" add_on="toggle360"]').' </p>'; } add_action( 'comment_form', 'my_comment_form' );This will save when I press the submit button. The shortcode added to the appropriate place in the theme displays but its submit button does not display.
Now I just need to figure out how to remove the default submit button!
Thanks,
Morgan
morganrtMemberUPDATE: I haven’t got the piklist code working yet but I’ve managed a workaround by grabbing the value of the first field and using it in a conditional to produce the required second field. It’s not as elegant or extensible as the piklist code could be but it seems to work for now.
From the lack of comment here, I’m guessing I haven’t explained the problem well or it’s maybe more difficult than I originally thought.
-
AuthorPosts