WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] Always Publish Immediately missing image (5 posts)

  1. jeicampro
    Member
    Posted 1 year ago #

    Thanks for this plugin, really good work!

    Although there is one problem that keeps bugging me, and it has since the previous version and this new version ( thanks for keeping it alive by the way :) ).

    On my site, I would like people to be able to post an image directly to my frontpage, without me having to moderate it. The post goes through, and shows up in Posts, but the image is hidden inside of the gallery function. This means that the post is empty when it shows up on the frontpage. Is there a work around? All my permissions are set the way they should be, and the image is uploaded to the folder, it's just not put automatically into the post.

    If you can get this to work, the plugin will just be perfect!

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

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    Hello, yes that is correct, by default the images and other submitted information are attached to the post as custom fields. The title, author, category and tags will be displayed as usual, but the images, IP address, and other data must be included in your theme file(s).

    To display the user-submitted images with the posts, use the included template tag, usp_post_attachments(), in your theme files (see readme.txt for more information).

    Let me know if any questions, glad to help :)

  3. jeicampro
    Member
    Posted 1 year ago #

    Allright thanks, I should have read the readme file! allthough, I cant seem to find where to put the template tag?

    I believe that it's supposed to go somewhere in the index.php right? :

    <?php
    get_header();
    ?>
    
    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    				<div class="entry">
    
    		<a class="post-title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
    			<div class="posttitle" style="border-bottom: 1px dashed #ccc;padding-bottom:10px;"><?php the_title(); ?></div><!-- Posttitle -->
    		</a>
    
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    <? get_comments_number(); ?>

    I cant seem to get it too work, and I've tried to put everywhere. Sorry for my n00bness.

  4. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi jeicampro, once you've got some user-submitted posts that have images attached to them, you can display them by including usp_post_attachments() anywhere within the WP loop. For example, try placing it immediately after the_content() tag.

  5. Jeff Starr
    Member
    Plugin Author

    Posted 9 months ago #

    11 months later no activity.. gonna go ahead and close the thread. Please open a new thread if any further questions, thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.