Short Codes

Display Frontend Upload - [feuGT_show]

You can show the Frontend Upload form by inserting [feuGT_show] short code in any WordPress page.

Accepts 2 optional parameter:

  1. upload_to(number or string =”current”) – If you wish to attach all the files uploaded on the current displayed to a specific page/post/custom post.
    Example:
    [feuGT_show upload_to=723] – All files uploaded from this button will be attached to post 723.
    [feuGT_show upload_to=current] – All files uploaded from this button will be attached to current post/page/custom post.
  2. logged_in_only(boolean) – If you wish to display the uploader only to logged in users.
    [feuGT_show logged_in_only=true] – The uploader will only be displayed to logged in users.

Display Attachments - [feuGT_show_attachments]

You can show uploaded files by inserting [feuGT_show_attachments] short code in any WordPress page.

You can add extra parameters to this shortcode:

-post_id
Show files connected to a post. Example [feuGT_show_attachments post_id=0]

-typetoget
Examples
[feuGT_show_attachments typetoget=all] – Shows files uploaded to Frontend Upload Custom Post Type, Attachments.
[feuGT_show_attachments typetoget=cpt] – Shows files uploaded to Frontend Upload Custom Post Type.
[feuGT_show_attachments typetoget=attachment] – Shows files uploaded to WordPress Media.

-count
Shows files limited by this value.
Example
[feuGT_show_attachments count=10] – Get the latest 10 uploaded files using Frontend Upload Plugin.

-logged_in_only
Decides if it’s displayed to logged in users or to everyone. Default = false.
Example
[feuGT_show_attachments logged_in_only=true] – Displays only to logged in users.

Leave a Reply