User Submitted Posts
[resolved] Help with modify loop.php (3 posts)

  1. pmattiasp
    Posted 3 years ago #

    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 } ?>

    i have looked in readme but coding isnt my best skill
    I hope you understand me :)
    Thanks in advance //Mattias

  2. pmattiasp
    Posted 3 years ago #

    Hello, i just installed Auto Featured Image plugin:

    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!

  3. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic