Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@momiexx– Welcome to the Piklist community!
Piklist does everything the WordPress way, so it should support RTL. Let us know if you find any issues.
March 23, 2016 at 10:21 am in reply to: Help – add image carousel with external links and caption inside a custom post #6156
SteveKeymasterWhat happens if you just use:
echo wp_get_attachment_url($image);
March 23, 2016 at 10:20 am in reply to: is the anyway include third party metabox in workflow tabs #6155
SteveKeymaster-Create a new meta-boxes file in your parts folder for the other plugin.
-Assign this meta box to the proper Workflow tab.
-Add this to the comment header:Extend: formatdiv // This is the div id of the meta box you want to move Extend Method: before
SteveKeymasterPiklist works with
register_post_type, and according to the WordPress codexshow_in_menuis correct.
SteveKeymaster@stemuedendron– I just emailed you a new version of Piklist. Please test and let us know if it solves your issues.
March 23, 2016 at 10:10 am in reply to: update condition in add_more group not working in v 9.9.7 #6152
SteveKeymasterNot yet. Should be in next version.
SteveKeymasterI’m not getting any errors. Your img tag is incorrect. Should be:
March 22, 2016 at 11:12 pm in reply to: Help – add image carousel with external links and caption inside a custom post #6148
SteveKeymasteryou have an error in the image field. two
imgimg img
March 22, 2016 at 11:09 pm in reply to: Create post from front-end form, but piklist_empty_post_title not working #6147
SteveKeymaster@digger149– Thanks for letting us know. We’ll take a look.
SteveKeymasterI need to see the full code. Please post
SteveKeymasterThis is untested, but should work. Replace your image div with this:
<img class="pull-left" src="" alt="" width="190">
SteveKeymaster@4michaelcoleman– You choose one of the harder configurations to display 😉 A Group, Add More, with a Media Uploader is a bunch of arrays you need to loop through.
Here’s the code you need. Let me know if the comments make sense:
/ Get the field value. $sponsor_groups = get_post_meta($post->ID, 'sponsor_group', false ); // Since the field value is an add more field, it's array, so we need to loop through it foreach ($sponsor_groups as $sponsor_group => $group) { // loop through each group foreach ($group as $group_info) { echo $group_info['company']; echo $group_info['desc']; echo $group_info['level']; // upload field is also an array that stores the image ID $image_ids = $group_info['upload_media']; // loop through each image ID to get the image info from WordPress foreach ($image_ids as $image) { $image_info = get_post($image); $title = $image_info->post_title; $description = $image_info->post_content; $caption = $image_info->post_excerpt; echo 'title:' . $title; echo 'description:' . $description; echo 'caption:' . $caption; echo 'img src="' . wp_get_attachment_url($image) . '" alt="" />'; } } }
SteveKeymaster0.9.4.29 is the latest on WordPress.org. We have a beta version that makes the add more array easier to use.
SteveKeymaster1) upgrade to the latest beta.
2) uncomment this://'field' => 'speaker_group_add_more',
3) Save your data
4) Pull your data with get_post_meta()Then use a foreach loop to go through your data.
-
AuthorPosts