Shortcodes

Create your online media store by shortcodes

Full list

You can use the shortcodes to insert content inside posts and pages.

Shortcode Description
[pvs_products] Catalog listing
[pvs_sidebar_menu] Left/Right sidebar search menu
[pvs_top_menu] Top search menu
[pvs_paging] Pagination
[pvs_product] Digital file's or Print's page
[pvs_categories] Categories
[pvs_collections] Collections
[pvs_lightboxes] Lightboxes
[pvs_credits] Buy credits page
[pvs_subscription] Buy subscription page


Products

[pvs_products] shortcode allows you to display digital files and prints by id, date, category. It supports pagination and search menu.

The default catalogue's page's URL is www.yourdomain.com/?search=


Available Product Attributes

The following attributes are available to use with the [pvs_products] shortcode. The examples are below.

Attribute Value Description
limit Integer The number of products to display. 12 by default.
view 'grid'
'fixed_width'
'fixed_height'
- Catalogue's grid view.
- Masonry style
- All previews have the same height
orderby 'date'
'id'
'popularity'
'downloads'
'title'
'rating'
Sorting by publication date
Sorting by id
Sorting by numbers of views
Sorting by numbers of downloads/sales
Sorting by title
Storting by rating
order 'DESC'
'ASC'
The product ordering is descending
The product ordering is ascending
query String Search query
type 'photo'
'video'
'audio'
'vector'
Media file's type
content 'free'
'featured'
Show only free files
Show only featured files
author String User login
id Integer Media file ID
category_id Integer Show files from category
lightbox_id Integer Show files from lightbox
collection_id Integer Show files from collection
print_id Integer Show prints.
royalty_free 1 Show only Royalty-free files.
rights_managed 1 Show only Rights-managed files.
exclusive 1 Show only Exclusive files.
editorial 1 Show only Editorial files.
color 'XXXXXX' RGB color. Example: FFFFFF
orientation 0
1
Landscape
Portrait
stock 'shutterstock'
'fotolia'
'istockphoto'
'depositphotos'
'bigstockphoto'
'123rf'
'pixabay'
Stock API type.

Scenario 1. I want to display my photos in a post.

You should add the shortcode in the post: [pvs_products]. You will see 12 photos. The view can be different: grid, masonry style (fixed width), fixed height (example below):



Scenario 2. How to create a catalogue page with search and pagination?

1) You have to go to WP admin panel -> Pages -> Add new and create a page with the code below. We use Bootstrap grid with two columns:

<div class="row">
<div class="col-md-3">
    [pvs_sidebar_menu url="/catalogue/"]
</div>
<div class="col-md-9">
    [pvs_top_menu url="/catalogue/"]
    [pvs_products]
    [pvs_paging url="/catalogue/"]
</div>
</div>

For example, the page's permalink is /catalogue/.

2) Set the permalink /catalogue/ in WP admin panel -> PVS Settings -> Site settings -> Catalog -> Catalog URL for the correct pagination and search listing. By default the setting is empty.


Shortcode Description
[pvs_sidebar_menu url="/catalogue/"] Left sidebar search menu. 'url' - attribute.
[pvs_top_menu url="/catalogue/"] Top search menu. 'url' - attribute.
[pvs_products] Catalog listing
[pvs_paging url="/catalogue/"] Pagination. 'url' - attribute.




Product

[pvs_product] shortcode displays a full single product page by ID


Available Product Attributes

The following attributes are available to use with the [pvs_product] shortcode. The examples are below.

Attribute Required Value Description
id Yes Integer File ID or Stock file ID
type No 'file'
'print'
'stock'
- Digital media file, by deafult.
- Print
- File on the stock sites (Shutterstock, Fotolia, Istockphoto, Depositphotos, Bigstockphoto, 123RF)
print_id Required only for type='print' Integer Print ID
stock_type Required only for type='stock' 'shutterstock'
'fotolia'
'istockphoto'
'depositphotos'
'bigstockphoto'
'123rf'
Stock API type.
* Pixabay doesn't permit to search by ID more.
stock_content Required only for type='stock' 'photo'
'video'
'audio'
All stocks
Only for Shutterstock, Fotolia, Istockphoto
Only for Shutterstock

Examples:

[pvs_product id="5"] — Show photo with id=5;

[pvs_product id="5" type="print" print_id="34"] — Show photo print with id=5 and print_id=34;

[pvs_product id="68105462854" type="stock" stock_type="shutterstock" stock_content="photo"] — Show Shutterstock photo with id=68105462854;



Categories

[pvs_categories] shortcode displays Photo Video Store categories.

The default Categories page's URL is www.yourdomain.com/categories/


Available Categories Attributes

The following attributes are available to use with the [pvs_categories] shortcode.

Attribute Value Description
limit Integer The number of categories to display. All, by default.
view 'grid'
'fixed_width'
- Catalogue's grid view.
- Masonry style
orderby 'date'
'title'
'priority'
Sorting by publication date desc
Sorting by title asc
Sorting by priority asc
id Integer Show subcategories of category with ID = id
query String Search categories where title, description or keywords have 'query' string.
tree 1
0
Show categories tree, by deafult
Show categories list

Example. I want to display six the latest categories on the home page.

You have to use the shortcode: [pvs_categories orderby="date" view="grid" tree="0" limit="6"]:



Collections

[pvs_collection] shortcode shows media collections.

The default Collection page's URL is www.yourdomain.com/media-collections/


Available Collections Attributes

The following attributes you can use with the [pvs_collections] shortcode.

Attribute Value Description
limit Integer The number of collections to display. All, by default.
view 'grid'
'fixed_width'
- Collection's grid view.
- Masonry style
query String Search collections.

Example. How to display two collections in my post.

You can use the shortcode: [pvs_collections view="grid" limit="2"]:



Lightboxes

[pvs_lightboxes] shortcode shows lightboxes (favorite lists).

The default Lightboxes page's URL is www.yourdomain.com/lightboxes/

The shortcode displays ONLY public lightboxes: WP admin -> PVS catalog -> Lightboxes -> enable 'Show in catalog' checkbox.


Available Lightboxes Attributes

The following attributes you can use with the [pvs_lightboxes] shortcode.

Attribute Value Description
limit Integer The number of collections to display. All, by default.
view 'grid'
'fixed_width'
- Collection's grid view.
- Masonry style
query String Search lightboxes.

Example. I would like to display three lightboxes on text page.

The shortcode code is: [pvs_lightboxes view="grid" limit="3"]:



Credits

[pvs_credits] shortcode shows Credits buy now form.

The default Credits page's URL is www.yourdomain.com/credits-list/



Subscription

[pvs_subscription] shortcode shows Subscription buy now form.

The default Subscription page's URL is www.yourdomain.com/subscription-list/


  Photo Store Script

Laravel photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.