Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@upside– This is a bug that will be fixed in the next version of Piklist. If you move
addmore-whatdo.phptonpsa-quotes/parts/does it work?
SteveKeymaster@justin– We’ve never heard of this issue before, so my guess is that it’s another plugin. I’m going to close this ticket. If you have any other issues please open another ticket.
SteveKeymasterYou’re very welcome. Closing ticket.
SteveKeymasterYou are trying to access the $post global without calling it first. This is standard PHP not a Piklist thing. Add
global $post;to your function:function aadc_casestudy_header() { global $post; $image_ids = get_post_meta($post->ID, 'case-study-header-image');
SteveKeymasterI can’t reproduce. Try disabling other plugins to see if that helps.
SteveKeymasterWhat version of Piklist do you have installed?
SteveKeymaster@liquidws– I’m guessing your an ACF convert since you posted the ACF custom function
get_field. The way ACF works you need to use their custom functions… but not with Piklist. Since Piklist does everything the WordPress way, you would just use a standard WordPress function.For example, if you’re checking to see if this field exists on a post you would use the standard WordPress function get_post_meta:
<?php $image = get_post_meta(get_the_ID(), 'image', true ); ?> <?php if($image): ?> <img src="<?php echo $image; ?>" /> <?php endif; ?>
SteveKeymaster
SteveKeymaster@diegoliv– I can’t reproduce the ‘undefined’ issue and will still look into that. As for the sorting and add-mores, try removing your validation rule. It’s limiting you to only one add_more.
Remove this, or increase the max.
'validate' => array( array( 'type' => 'limit', 'options' => array( 'min' => 1, 'max' => 1 ) )
SteveKeymaster@justin– This is the first time we’ve heard of this issue. I just tested with Pikist and Gravity Forms and didn’t get that error. Do you have any other plugins activated?
SteveKeymasterGreat! We’re working on cleaning up the notices. Closing ticket.
SteveKeymasterWe worked with the developer to fix. Thanks for letting us know. Closing ticket.
SteveKeymasterThere is an error in the Simple Directory plugin.
In simple-directory.php, find this line:
add_filter( 'template_include', 'simple_dir_load_template' );and change it to:
add_filter( 'template_include', 'simple_dir_load_templates' );The function name should now be plural.
I’ll let the plugin author know.
-
AuthorPosts