WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] Showing URL in Post Instead of Image (8 posts)

  1. cpeterson325
    Member
    Posted 10 months ago #

    I'm pretty sure this plugin is exactly what I'm looking for if I could get it set up.
    The url is showing up instead of the actual image in the post. I missing the setup somewhere. When a user submits an image, it shows up like this in custom fields:
    name = user_submit_image
    value =http://lovethoseoldmotorcycles.com/wp-content/uploads/2013/10/Photo190.jpg
    which IS the url of the image.

    I've put this code in the loop-page.php and the loop-single.php :
    <?php $images = usp_get_post_images(); foreach ($images as $image) { echo $image; } ?>

    Can you show me what else I need to do or what needs to be different?
    Thanks!

    http://wordpress.org/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 10 months ago #

    Here are two tutorials I wrote that should help:

    http://wp-mix.com/display-images-attached-post/
    http://wp-mix.com/set-attachment-featured-image/

    I think these are mentioned in the plugins readme.txt file, along with a bunch of other key information. I recommend giving it a read if you have not already done so :)

  3. cpeterson325
    Member
    Posted 10 months ago #

    I've read it about 56 times, but being relatively new to coding it's not all that clear. I've read just about every post on the subject I could find as well. Obviously, still learning. I appreciate your patience with us novices. I'm trying to get up to speed.

  4. cpeterson325
    Member
    Posted 10 months ago #

    Ok. Read it. Novice question: Where in the functions.php do I place it? Does it matter? Thanks!

  5. cpeterson325
    Member
    Posted 10 months ago #

    I dropped it in at the bottom of the functions.php and got this message:
    Parse error: syntax error, unexpected '/' in /home2/cp325/public_html/wp-content/themes/eList/functions.php on line 1447

  6. Jeff Starr
    Member
    Plugin Author

    Posted 10 months ago #

    It sounds like you may have an extra "<?php " or "?>" tag in there somewhere..

  7. timot.mo
    Member
    Posted 9 months ago #

    Amazing plugin, I can see there's an option to attach the uploaded image as a featured image but can we have it both as a featured image AND the full size image in the body of the content?

    Thanks!

  8. Jeff Starr
    Member
    Plugin Author

    Posted 9 months ago #

    Yes that is possible using template tags. Please read the readme.txt for more information.

Reply

You must log in to post.

About this Plugin

About this Topic