Hello, I’ve been at this for days. I’ve been all over google, all over other forums, all over the authors site and I am about to rip my hair out. I just dont understand how to do this.
I am trying to use a template tag for a plugin called “user submitted posts” to allow users to post images in their comments with tags and categories applied to them. The readme says a bunch of stuff way over my head. It wants me to use this template tag: <?php post_attachments(); ?> in order for word press to attach images to the users posts. but it also says this:
<?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 =
$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
Now does this mean in order for the template tag to work I have to fill in the () with one of the things above?
I guess my biggest question of all is where do I put the tag to be functional. I have experimented and the closest I have got to getting this to work is that it displays the most recent posts image. Once a second image is posted it discards that image and displays the newest image. I want it too display every ones images all down the front of the blog in every comment.
I also dont know if there is one spot for template tags or if you have to put it on the xxxx.php pages’s code depending on where the action is taking place. In this case here is how I have my site setup: I have a menu that has “home” and “upload images”, the user can go to the upload images page, enter all there information and the image they are uploading. Once uploaded the user is redirected to the main page where there comment is posted immediately. Does the tag need to go on the main index.php or somewhere else? And if so where on that page?
The plugin works great until I need the images to work.
link to plugin: http://wordpress.org/extend/plugins/user-submitted-posts/