Posts

Select the Posts Content Source option to display your posts, pages, or any other post types in Visual Portfolio gallery blocks.

Available Options

  • Post Type: Select types like Post, Page, Portfolio, etc.
  • Post Types Set: Use multiple post types in a single feed.
  • Manual Selection: Include specific posts only.
  • Custom Query: Use a custom query for complex selections.
  • Current Query: Display posts based on the current page query.

Post Type

Display posts from the selected post type with several customization options.

Excluded Posts

Type post names to exclude specific posts from the output.

Taxonomies

Filter posts by categories, tags, or custom taxonomies:

  • OR Relation: Show posts from any selected taxonomies.
  • AND Relation: Show posts that match all selected taxonomies.

Examples:

  • If you want to see all posts from selected taxonomies, select the OR relation (for example, if you want to show all posts from both “2018” and “2019” categories).
  • If you want to see posts that have all selected tags and categories at the same time, select the AND relation (for example, if you want to show all posts with the ”design” tag from the “2018” category).

Order

Customize item order using:

  • Date
  • Title
  • ID
  • Comments Count
  • Modified
  • Menu Order
  • Manual Selection
  • Random

Change the direction using the Order Direction option.

Avoid Duplicates

Ensure unique posts without duplicates from other galleries.

Offset

Skip over a specified number of posts (e.g., 2 to skip 2 posts).

Authors

Pro Feature

This is a part of the Visual Portfolio Pro plugin.
Purchase the Pro plugin to access this and other advanced features.

Display posts from selected authors only.

Date

Pro Feature

This is a part of the Visual Portfolio Pro plugin.
Purchase the Pro plugin to access this and other advanced features.

Filter posts by date range:

  • All
  • Past Day
  • Past Week
  • Past Month
  • Past Quarter
  • Past Year
  • Custom (set custom date ranges)

Ignore Sticky Posts

Pro Feature

This is a part of the Visual Portfolio Pro plugin.
Purchase the Pro plugin to access this and other advanced features.

Exclude posts marked as Sticky from the display.

Exclude Posts Without Thumbnail

Pro Feature

This is a part of the Visual Portfolio Pro plugin.
Purchase the Pro plugin to access this and other advanced features.

Exclude posts that do not have a featured image.

Post Types Set

Display multiple post types in a single feed with all options available in the Post Types output.

Post Types

Include specific post types by typing the name to see suggestions.

Manual Selection

Include specific posts only.

Specific Posts

Include specific posts by typing the name to see suggestions.

Custom Query

Use Custom Query as your data source. Refer to WordPress documentation for more on queries:

Example #1

Show posts from the Branding category (slug: branding), posted in 2012, and ordered ascending:

post_type=post&category_name=branding&year=2012&order=ASC

The same for Portfolio post type:

Query:
post_type=portfolio&tax_query[0][taxonomy]=portfolio_category&tax_query[0][field]=slug&tax_query[0][terms]=branding&year=2012&order=ASC

Generated from:
array(
    'post_type' => 'portfolio',
    'tax_query' => array(
        array(
            'taxonomy' => 'portfolio_category',
            'field' => 'slug',
            'terms' => 'branding',
        ),
    ),
    'year' => '2012',
    'order' => 'ASC',
)

Example #2

Show images from the WordPress Media Library:

post_type=attachment&post_status=inherit&post_mime_type=image

Current Query

Display posts based on the current page query, which is useful for post archives and with plugins like Facet WP for filtering.

Was this page helpful?