Skip to content

This Wordpress plugin enables a shortcode that can be used to add a gallery with OneShader shaders to your Worpress site.

License

Notifications You must be signed in to change notification settings

reindernijhoff/wp-oneshader-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress OneShader Gallery Plugin

This WordPress plugin enables a shortcode for adding a gallery with OneShader shaders to your WordPress site. The gallery's content is based on a query attribute of the shortcode and will update automatically.

You can find a live demo of this plugin here.

Note:

  • This is (one of) the first WordPress plugins I have ever made.

I don't want to DDoS OneShader, and I want a fast plugin. Therefore, a query's result will be cached for (at least) one day.

Installation

Copy the oneshader directory into wp-content/plugins and activate the plugin in the Admin.

Basic usage

Add a oneshader-list shortcode to your post or page. For example:

[oneshader-list query="shader/browse/love/"]

Optional attributes

You can use the following (optional) attributes:

  • query - The query term.
  • columns (optional, default = 2) - Number of columns of the gallery. Values 1,2,3 and 4 are supported.
  • limit (optional, default = 0) - Maximum number of shaders in the gallery if limit > 0.

About

This Wordpress plugin enables a shortcode that can be used to add a gallery with OneShader shaders to your Worpress site.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages