Tagged: file
- This topic has 6 replies, 2 voices, and was last updated 7 years, 2 months ago by
Steve.
-
AuthorPosts
-
-
December 10, 2014 at 10:05 am #3020
dawoodMemberHey folks,
am really interested in using Piklist for my next project. I am curious how it works on a multisite wordpress install as well, have there been / are there any security concerns?
-
December 10, 2014 at 11:47 am #3021
SteveKeymaster@dawood– Welcome to the Piklist Community!
Piklist works great with multisite. You can Network Activate, or activate for each site. Since Piklist does everything the WordPress way, and uses WordPress APIs where possible, there have never been any security concerns.
Let us know if you have any other questions.
-
December 10, 2014 at 12:49 pm #3023
dawoodMemberThanks Steve, am testing it right now and trying out all the fields! Though am stuck already.. 🙂
So I registered a field
// Upload Image / File piklist('field', array( 'type' => 'file' ,'field' => 'my_image' ,'label' => 'Upload image' )); and am trying to call it to my single.php but for some reason i can't seem to get it<?php foreach ($image_ids as $image) { $image_ids = get_post_meta($post_id, 'my_image'); $myupload = get_post($image); $title = $myupload->post_title; $description = $myupload->post_content; $caption = $myupload->post_excerpt; echo 'title:' . $title; echo 'description:' . $description; echo 'caption:' . $caption; echo '<img src="' . wp_get_attachment_url($image) . '" />'; print_r($myupload); // Displays all data } ?> -
December 10, 2014 at 1:07 pm #3024
-
December 10, 2014 at 1:11 pm #3025
dawoodMemberthanks Steve, I tried it earlier but not dice. might be that I am getting variables mixed up?
`<?php
$image_ids = get_post_meta($post_id=’forms’, ‘my_image’);
foreach ($image_ids as $image)
{$myupload = get_post($image);
$title = $myupload->post_title;
$description = $myupload->post_content;
$caption = $myupload->post_excerpt;echo ‘title:’ . $title;
echo ‘description:’ . $description;
echo ‘caption:’ . $caption;echo ‘
‘;
print_r($myupload); // Displays all data
}
?> -
December 10, 2014 at 1:22 pm #3026
dawoodMemberok I got it figured out, I had the post meta, calling in the wrong id.. thanks Steve.
-
December 10, 2014 at 1:24 pm #3027
-
-
AuthorPosts
- The topic ‘Security’ is closed to new replies.