« Back to Documentation

Model “posts” Attribute

The “posts” attribute can be added to any of your WP3D shortcodes to customize the way in which your models are listed.

The “posts” attribute is looking for a numeric value and will limit the results show on the page to this number.

Show all models: (DEFAULT)

[wp3d-models posts=""]

If left blank, or if the attribute doesn’t exist, all matching models will be displayed.

Show just 20 models:

[wp3d-models posts="20"]

In this case, only the most recent 20 models would be displayed.

Show just 20 models of “construction” type:

[wp3d-models posts="20" type="construction"]

In this case, only the most recent 20 models that are also marked as Model Type “construction” would be displayed.

Show ALL published models:

[wp3d-models posts="-1"]

Entering “-1” for the posts value will tell WP3D Models to show ALL published models.