• Hello, I am very new to wordpress and webdesign in gerneral. I am VERY much in need of some help with installing this plugin. I’ve been all over google and I have read the read me but its over my head… There is alot of people on google who have the same problem, only I know what the problem is, just not how to fix it.

    The problem is the plugin called “user-submitted-posts”, allows user to submit images to your blog. Well it doesnt actually post the images without using this template tag. From the read me file:

    To display the images attached to user-submitted posts, use this template tag:

    <?php post_attachments(); ?>

    This template tag prints the URLs for all post attachments and accepts the following paramters:

    <?php post_attachments($size, $beforeUrl, $afterUrl, $numberImages, $postId); ?>

    $size = image size as thumbnail, medium, large or full -> default = full
    $beforeUrl = text/markup displayed before the image URL -> default = <img src=”
    $afterUrl = text/markup displayed after the image URL -> default = ” />
    $numberImages = the number of images to display for each post -> default = false (display all)
    $postId = an optional post ID to use -> default = uses global post

    Additionally, the following template tag returns an array of URLs for the specified post image:

    <?php get_post_images(); ?>

    This tag returns a boolean value indicating whether the specified post is a public submission:

    <?php is_public_submission(); ?>

    Is there anyone out there that will give me help like I am slow? Telling me what line and where to paste it in? I dont see myself understanding it. My homepage is VERY simple and has almost nothing modified on it yet. And really im not even sure it goes on the homepage. The home page is where the posts are being posted with the needed image files that are not showing up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter osakamitsu

    (@osakamitsu)

    I apologize as it seems like I may have posted this in the wrong place.

    Maybe it should have gone here: “Please use the hacks sub-forum for coding topics”

    I would move it but I don’t see an option to delete it so I can re-post it.

    Thread Starter osakamitsu

    (@osakamitsu)

    and if it makes a difference this is from the plugins site:

    Display image attachments for submitted posts

    This template tag displays the images attached to user-submitted posts:

    <?php post_attachments(); ?>
    The post_attachments template tag prints the URLs for the specified image attachments. It accepts the following parameters:

    <?php post_attachments($size, $beforeUrl, $afterUrl, $numberImages, $postId); ?>

    $size = image size as thumbnail, medium, large or full -> default = full
    $beforeUrl = text/markup displayed before the image URL -> default = <img src=”
    $afterUrl = text/markup displayed after the image URL -> default = ” />
    $numberImages = the number of images to display for each post -> default = false (display all)
    $postId = an optional post ID to use -> default = uses global post

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Noob help with "user-submitted-posts", inserting template tag’ is closed to new replies.