Forums

User Submitted Posts
Help with modify loop.php (2 posts)

  1. pmattiasp
    Member
    Posted 3 months 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 3 months 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!

Reply

You must log in to post.

About this Plugin

About this Topic