Overview
Visual Portfolio provides powerful filtering and sorting features that allow users to dynamically organize and view portfolio content. These features enhance user experience by enabling interactive content discovery without page reloads.Filters
Filters allow users to display specific categories or taxonomies of portfolio items. The plugin supports multiple filter styles and configurations.Filter Types
Default Filter
The standard filter displays all available categories as clickable buttons.Dropdown Filter
A space-saving dropdown menu for category selection.Minimal Filter
A simplified, minimal design for filters.Filter Configuration
Filters are configured through the portfolio settings and can be added to layout elements:Filter Parameters
- Show Count: Display the number of items in each category
- Filter URL: Each filter generates a unique URL parameter (
vp_filter) - Active State: Automatically applied to the currently selected filter
- AJAX Loading: Filters update content without full page reloads
Custom Filter Templates
You can create custom filter templates by placing files in:Sorting
Sorting enables users to reorder portfolio items based on different criteria.Available Sort Options
- Date: Sort by publication date (newest/oldest)
- Title: Alphabetical sorting by title
- Menu Order: Custom order defined in WordPress
- Random: Randomize item order
- Popularity: Sort by view count (if tracking enabled)
Sort Implementation
Sort Configuration
Sort controls are registered and can be extended:Sort Styles
- Default: Button-style sort controls
- Dropdown: Dropdown menu for sort selection
- Minimal: Simplified design
URL Parameters
Both filters and sorting use URL parameters for state management:vp_filter- Current active filtervp_sort- Current sort ordervp_search- Search query (if search is enabled)vp_page- Current pagination page
SEO Considerations
Filtered and sorted pages automatically receivenoindex, follow meta tags to prevent duplicate content issues:
Filter & Sort Hooks
Available Filters
Example: Adding Custom Sort Option
JavaScript Integration
Filters and sorting use data attributes for JavaScript interaction:- AJAX requests for filtered content
- URL state management
- Active state styling
- Loading indicators
Best Practices
Performance
Performance
- Use filters for large portfolios to reduce initial load
- Enable caching for filter queries
- Consider pagination with filtered results
User Experience
User Experience
- Provide clear labels for filter categories
- Show item counts to help users make informed choices
- Use appropriate filter style for your content volume
SEO
SEO
- The plugin automatically handles SEO for filtered pages
- Canonical URLs point to the unfiltered version
- Filtered pages use
noindex, followto maintain crawlability
Related Features
- Pagination - Works seamlessly with filters
- SEO Optimization - SEO handling for filtered content
- Lazy Loading - Performance optimization for filtered results