Overview
Visual Portfolio supports three primary content sources for building galleries and portfolios. Each source type has its own configuration options and use cases.Content sources are defined in the
content_source control at classes/class-admin.php:1309Content Source Types
Post-Based Content
Display WordPress posts, pages, custom post types, or portfolio items. Configuration:- Post Types
- Post Types Set
- Manual Selection
- Current Query
- Custom Query
Select from available WordPress post types:
Filtering Options
Filtering Options
Ordering
Ordering
Advanced Filters
Advanced Filters
Images Content
Display a custom gallery from WordPress Media Library images. Configuration:Images source is ideal for creating standalone galleries without requiring post content.
id- WordPress attachment IDurl- Full image URLtitle- Image title from media librarydescription- Full image descriptioncaption- Short caption textalt- Alternative text for accessibilityfocal_point- Custom focal point (Pro feature)
Social Stream Content
Display content from social media platforms (Pro feature). Configuration:Implementation Details
Content Source Registration
Query Building
TheVisual_Portfolio_Get class handles query building:
Archive Mapping
Visual Portfolio can automatically replace WordPress archive pages with portfolio layouts:1
Enable Portfolio Post Type
Enable the Portfolio post type in Settings > General
2
Select Archive Page
Choose a page to serve as your portfolio archive
3
Configure Items Per Page
Set pagination for archive:
Extending Content Sources
Developers can add custom content sources:Content Source Filters
Key filter hooks for content sources:Related AJAX Endpoints
Content source controls use these REST endpoints:Performance Considerations
See Also
Portfolio Post Type
Learn about the custom Portfolio post type
Layouts
Choose the right layout for your content
REST API
Query content via REST API
Filters Reference
View all available filter hooks