Forum Replies Created
-
AuthorPosts
-
SteveKeymasterGreat. Closing ticket.
SteveKeymasterA few things:
1) There was a typo in the doc. Try this:echo '<img src="' . wp_get_attachment_url($image) . '"/>';
2) Unfortunately, you just can’t blindly copy the docs, because your code will probably be different.$image_ids = get_post_meta($post_id, 'my_image');, means get the post meta field ‘my_image’, however, you don’t have a field called ‘my_image”, yours is called ‘story_media’. You will need to change that as well.
SteveKeymasterYour file code is being shown on a Post Type, but you are using
get_optionto pull the data,$settings = get_option('my_settings');get_optionis used for settings.In the tutorial you referenced, it shows how to get data for a post type using
get_post_meta:$image_ids = get_post_meta($post_id, 'my_image');
SteveKeymaster@kristiano– We were able to reproduce. Working on a fix. Thanks!
SteveKeymasterPlease zip up your plugin and email to [email protected] We will take a look.
SteveKeymasterWould this help? https://piklist.com/user-guide/docs/piklist_pre_update_option/
SteveKeymasterThis is saving for me. Did you create other meta boxes in this page?
SteveKeymaster
SteveKeymaster@jmayhak– Please post your meta-box code, or zip it up and email to [email protected]
SteveKeymasterAwesome! BTW, This code was pulled from the Piklist Demos > Advanced Tab > Content Section.
The built-in demos has lots of cool example code.
SteveKeymasterYou can use something similar to this code to display the Post Titles in a dropdown:
,'choices' => piklist( get_posts( array( 'post_type' => 'post' ,'orderby' => 'post_date' ) ,'objects' ) ,array( 'ID' ,'post_title' ) )This will save the Post ID, which you can then use to get the post.
SteveKeymasterThere’s seems to be a conflict with APC Object Caching and Piklist. To temporarily fix:
-Click on Performance
-Scroll down to “Object Cache”
-Choose “Disk” from the dropdown and save.You should be able to use Piklist now.
Thank you again for helping us find this bug.
SteveKeymasterGot email! And I was able to reproduce the issue. Thank you so much. We’ll work on a fix.
SteveKeymasterThank you for helping out. I can’t reproduce the bug with W3 Total Cache. Would you mind exporting your Total Cache settings and emailing to us:
-Under PERFORMANCE. Click on “General Settings”
-Scroll all the way down to the bottom of page.
-Under Export configuration, click “Download”
-Email the file to: [email protected]As for the Joomla question, I don’t fully understand. If you can post screenshots that would probably help.
SteveKeymasterAre you comfortable deactivating plugins until you find the conflict?
-
AuthorPosts