class="postbox">

  • /resources/usp.css
  • /views/submission-form.php

/usp/

  • /wp-content/themes/your-theme/usp/usp.css
  • /wp-content/themes/your-theme/usp/submission-form.php

.  »

/>
/>
/>
/>
/>
/>
 »

/>
/>
/>
/>
/>
 »

/>
/>
%%post_title%%, %%post_content%%, %%post_cats%%, %%post_author%%, %%post_date%%, %%blog_name%%, %%blog_url%%, %%post_url%%, %%admin_url%%, %%edit_link%%, %%delete_link%%, %%user_email%%, %%user_url%%, %%custom_field%%, %%custom_field_2%%
%%post_title%%, %%post_content%%, %%post_cats%%, %%post_author%%, %%post_date%%, %%blog_name%%, %%blog_url%%, %%post_url%%, %%admin_url%%, %%edit_link%%, %%delete_link%%, %%user_email%%, %%user_url%%, %%custom_field%%, %%custom_field_2%%
,  »

/>
/>
/>
 »

usp_custom_field
,  »

usp_custom_field_2
,  »

/>
/>
usp_custom_checkbox
{img} = <img>
,  »

/>

/>
 »

%%width%%, %%height%%, %%thumb%%, %%medium%%, %%large%%, %%full%%, %%custom%%, %%title%%, %%title_parent%%, %%author%%, %%url%%
%%email%%, %%author%%, %%title%%
%%author%%
%%url%%, %%author%%, %%title%%
%%custom_label%%, %%custom_name%%, %%custom_value%%, %%author%%, %%title%%
%%custom_label_2%%, %%custom_name_2%%, %%custom_value_2%%, %%author%%, %%title%%
 »

[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]

 »

/>