Table of Contents
Select the Posts Content Source option if you want to display your posts or any other post types in gallery blocks.
![](https://visualportfolio.co/wp-content/uploads/2020/11/image-18-1024x572.png)
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
Exclude specific posts from the output by typing the name to see suggestions.
Taxonomies
Use taxonomies (categories and tags) to filter posts:
- 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
Display posts from selected authors only.
Date
Filter posts by date range:
- All
- Past Day
- Past Week
- Past Month
- Past Quarter
- Past Year
- Custom (set custom date ranges)
Ignore Sticky Posts
Exclude posts marked as Sticky from the display.
Exclude Posts Without Thumbnails
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.