[Plugin: WP User Frontend] Showing uploaded images
-
Uploaded images by WP User Frontend plugin are saved as an attachment to the post. They can be found in the “Media” section of /wp-admin.
Currently there is no way to show the attachment images to the post, as long this feature doesn’t come by default, please use this code in your themes single.php to show the attached images:
<?php $args = array( 'post_type' => 'attachment', 'numberposts' => null, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo wp_get_attachment_image($attachment->ID, 'medium'); } } ?>
https://www.ads-software.com/extend/plugins/wp-user-frontend/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: WP User Frontend] Showing uploaded images’ is closed to new replies.