WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pmattiasp
    Member
    Posted 1 year 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 } ?>
    </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

  2. pmattiasp
    Member
    Posted 1 year ago #

    Hello, i just installed Auto Featured Image plugin:
    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!

  3. Jeff Starr
    Member
    Plugin Author

    Posted 8 months 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.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic