[user-submitted-posts]
<?php if (function_exists('user_submitted_posts')) user_submitted_posts(); ?>
»
[usp-login-form]
<?php if (function_exists('usp_login_form')) usp_login_form(); ?>
[usp_display_posts]
<?php if (function_exists('usp_display_posts')) echo usp_display_posts(array('userid' => 'all', 'numposts' => -1)); ?>
[usp_display_posts] : default displays all submitted posts by all authors
[usp_display_posts userid="1"] : displays all submitted posts by registered user with ID = 1
[usp_display_posts userid="Pat Smith"] : displays all submitted posts by author name "Pat Smith"
[usp_display_posts userid="all"] : displays all submitted posts by all users/authors
[usp_display_posts userid="all" numposts="5"] : limit to 5 posts from all users
»
[usp_gallery]
<?php if (function_exists('usp_get_images')) $images = usp_get_images(); foreach ($images as $image) echo $image; ?>
$size = image size as thumbnail, medium, large or full -> default = thumbnail
$before = text/markup displayed before the image URL -> default = {a href='%%url%%'}{img src='
$after = text/markup displayed after the image URL -> default = ' /}{/a}
$number = the number of images to display for each post -> default = false (display all)
$postId = an optional post ID to use -> default = false (uses global/current post)
-
{ }
< > before
after
-
before after
-
%%url%%
[usp-reset-button]
class = classes for the parent element (optional, default: none)
value = link text (optional, default: "Reset form")
url = the URL where your form is displayed (required, default: none)
%%current%%
[usp_access cap="read" deny="Message for users without read capability"][/usp_access]
[usp_member deny="Message for users who are not logged in"][/usp_member]
[usp_visitor deny="Message for users who are logged in"][/usp_visitor]
{tag} <tag>.
[usp_member]
[user-submitted-posts]
[/usp_member]
[usp_visitor]
[usp-login-form]
[/usp_visitor]
»