PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

InPost Gallery 2.0.5 release

  • , Updated:

Big improvement in the plugin functionality:

  • Added special expressions for selecting output images
  • Added fancy box script

Special expressions

For example: you want to output 2 first images from 4 last posts. From now no problems. Just paste {'slug':'post','exec':'take','data':('4:DESC:2:first')}  in popup field "Post id"  and that is all!

 

Now supports 2 commands (exec): take,takebyid.

Let's consider them.

{'slug':'post','exec':'take','data':('4:DESC:2:first')} - output 2 first images from 4 last(DESC) posts

slug - slug of post or any custom type. Depends of your decision.

exec - command (take,takebyid)

data - data by which queries posts. In this example 4 mean count of posts, DESC or ASC - sort order by date, 2 - count of images from each post, first or last- take 2 first /last  images.

 

 {'slug':'post','exec':'takebyid','data':('230:4:last','232:2:first','234:1:last')} - take 4 last images from post with ID 230, take 2 first images from post with ID 232, take 1 last image from post with ID 234. In such order as in expression images are outputted.

slug - slug of post or any custom type. Depends of your decision.

exec - command (take,takebyid)

data - '230:4:last' =>'posrID,ImagesCount,first or last images to take'

Note: be attentive with the syntax, and do not write spaces, another way you get error.

If you have any idea about a query combination write in comments, maybe I will consider them =)

 

 

 

WOOBE - WooCommerce Bulk Editor and Products Manager Professional