WordPress.org

Support

Support » Plugins and Hacks » User Submitted Posts » [Resolved] Always Publish Immediately missing image

[Resolved] Always Publish Immediately missing image

  • jeicampro

    @jeicampro

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    @specialk

    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 🙂

    jeicampro

    @jeicampro

    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.

    Plugin Author Jeff Starr

    @specialk

    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.

    Plugin Author Jeff Starr

    @specialk

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Always Publish Immediately missing image’ is closed to new replies.
Skip to toolbar