Title: Help with modify loop.php
Last modified: August 20, 2016

---

# Help with modify loop.php

 *  Resolved [pmattiasp](https://wordpress.org/support/users/pmattiasp/)
 * (@pmattiasp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-with-modify-loopphp/)
 * Hi, great module i love it 🙂 i made my site so the post title and the featured
   image is linked to a custom field i made (extern_url) and i changed so the user_submit_url
   from youre plugin is connected to my field (extern_url) and everything works 
   great but when i use the plugin the attached image is not doesn’t show up.
 * this is my set up and it works well for my purposes but i dont know how to modify
   it so it works with (user-submitted-posts image)
 * and a only want to show the featured image.
 * <?php // Display this loop for single blog posts
    } elseif (is_single()) { ?>
   <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class=”post”
   > <div class=”post-image”> <?php if(get_field(‘extern_url’)) { ?> ” rel=”bookmark”
   title=”<?php the_title_attribute() ?>” target=”_blank”><?php the_post_thumbnail()?
   > <?php } else { ?> ” rel=”bookmark” title=”<?php the_title_attribute() ?>”><?
   php the_post_thumbnail() ?> <?php } ?> </div>
 * i have looked in readme but coding isnt my best skill
    I hope you understand 
   me 🙂 Thanks in advance //Mattias [http://wordpress.org/support/plugin/user-submitted-posts](http://wordpress.org/support/plugin/user-submitted-posts)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [pmattiasp](https://wordpress.org/support/users/pmattiasp/)
 * (@pmattiasp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-with-modify-loopphp/#post-3411375)
 * Hello, i just installed Auto Featured Image plugin:
    [http://wordpress.org/support/plugin/auto-featured-image](http://wordpress.org/support/plugin/auto-featured-image)
 * And it works now 🙂
 * i just have to preview the post before i publishes it, and then the image appears
   🙂
 * Thanks for a great plugin!
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/help-with-modify-loopphp/#post-3411567)
 * Awesome, glad you got it 🙂
 * Also I should note that the USP plugin now includes an option to set submitted
   images as featured images by default.
 * Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Help with modify loop.php’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)
 * [usp](https://wordpress.org/support/topic-tag/usp/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/help-with-modify-loopphp/#post-3411567)
 * Status: resolved