Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@tatamata– Please check your field names. If you have built a field with the same name as one already on the page, like in the Yoast metabox, then your form will fail. This is standard HTML form stuff, not Piklist.
Try name-spacing your field names and see if that helps.
SteveKeymaster@fbgm– One of the benefits to Piklist being a code-based framework is that you can wrap your field code in standard PHP conditions. Use the standard WordPress function wp_get_post_parent_id().
$page_parent = wp_get_post_parent_id($post->ID); if(!empty($page_parent)) : your field code here endif;
Does that make sense?
SteveKeymasterYou should be able to piece together the url using standard WordPress/PHP functions. You even know the taxonomy: $value.
SteveKeymasterCan you provide the link to user Pro?
December 11, 2015 at 1:22 pm in reply to: [v0.9.9.X] Post/Page meta fiels not updating, CPT works fine #5302
SteveKeymasterGuessing the custom fields meta box is interfering.
Try removing using remove_post_type_support
December 11, 2015 at 1:07 pm in reply to: [v0.9.9.X] Post/Page meta fiels not updating, CPT works fine #5300
SteveKeymasterDo the built in Demos work?
SteveKeymaster@fritsgarrer– Welcome to the Piklist community!
required does not go in the conditions array. This is still an issue. However, a work around might be to put your fields under different tabs in a WorkFlow. You can easily wrap the field in a standard PHP conditional that way.
SteveKeymasterDoes your
get_terms()code work?
SteveKeymasterI think you’re looking for
piklist_form::save()
SteveKeymasteryup!
SteveKeymaster@efegue– Welcome to the Piklist community!
The latest version of Piklist, v0.9.9.x, makes this super easy.
When registering your setting add:
'layout' => 'meta-boxes'You can see an example in the built-in demos. Check out this file.
SteveKeymasterGreat! Closing ticket.
SteveKeymaster@argonaut70– Welcome to the Piklist community!
I just tried your code and it worked for me. The class shows on the actual input. Try viewing the source of the entire page and searching for
my-intro-text.Let us know if you are still having an issue.
SteveKeymasterYou build this with Piklist conditions.
-
AuthorPosts