Overview
Manual selection is configured using theids posts source:
post__in ordering).
Configuration
Post Type
When using manual selection, the post type is automatically set toany:
From /classes/class-get-portfolio.php:1598-1604:
Manual selection supports mixing different post types in a single gallery (posts, pages, portfolio items, etc.).
Selecting Posts
In the block editor, the Specific Posts control provides a searchable dropdown: From/classes/class-admin.php:1390-1407:
- Searches posts by title across all post types
- Displays post title, post type, and status
- Supports drag-and-drop reordering
- Loads posts dynamically as you type
Order Control
Manual Order (post__in)
To preserve your selection order, usepost__in ordering:
/classes/class-get-portfolio.php:1566-1567:
Other Sort Options
You can override manual order with other sorting:post__in- Manual selection order (recommended)post_date- Publication datetitle- Alphabetical by titlemodified- Last modified dateid- Post IDcomment_count- Number of commentsrand- Random order
Most users should use
post__in ordering to respect their manual curation.Excluded Features
When using manual selection, these features are not available:Excluded Posts
The excluded posts option is disabled: From/classes/class-admin.php:1418-1434:
Taxonomies
Taxonomy filtering is disabled for manual selection: From/classes/class-admin.php:1448-1464:
Offset
The offset option is hidden: From/classes/class-admin.php:1604-1621:
Use Cases
Featured Projects Portfolio
Handpick your best work:Mixed Content Showcase
Combine different post types:Curated Category Override
Manually select specific items from a category:Campaign Landing Page
Create a specific collection for a marketing campaign:Query Implementation
The manual selection query is built in/classes/class-get-portfolio.php:1598-1607:
Final WP_Query
The resulting query looks like:Post Selection Control
Thefind_posts_select_control callback provides dynamic post searching:
Pagination
Manual selection supports pagination normally:Sticky Posts
Sticky posts are ignored in manual selection:Empty Selection
If no posts are selected:Comparison with Other Sources
Manual Selection vs. Post Query
Manual Selection vs. Images
Best Practices
1. Use post__in Ordering
Always usepost__in ordering for manual selections:
2. Limit Selection Size
For performance, keep manual selections reasonable:- Recommended: 10-50 posts
- Maximum: 100-200 posts
3. Mix Post Types Strategically
When mixing post types, ensure they have compatible metadata:4. Use for Special Collections
Manual selection is ideal for:- Featured work showcases
- Landing page portfolios
- “Best of” collections
- Client-specific galleries
- Event or campaign content
5. Document Your Selections
Add comments in your code or page documentation:Troubleshooting
Posts Not Appearing
Issue: Selected posts don’t display Solutions:- Check post status (must be published)
- Verify post IDs exist
- Ensure user has permission to view posts
- Check if posts have featured images (if required by item style)
Wrong Order
Issue: Posts display in wrong order Solution: Set order topost__in:
Mixed Post Types Not Working
Issue: Only one post type appears Solution: Ensurepost_type is set to any (automatic with ids source).
Related Resources
- Posts Query - Dynamic post querying
- Portfolio Items - Portfolio post type
- Image Galleries - Image-based content