BrunoJ506
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Viewing topic 1 (of 1 total)
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
How can i filter a view to show just the posts with empty excerpt
Started by: BrunoJ506
in: Toolset Professional Support
Problem: I would like to create a View that shows only those posts with empty excerpts. Solution: It's not possible to filter by post_excerpt using WP_Query, so it will require custom PHP. Create a custom shortcode that returns a comma-separated list of post IDs, then feed that shortcode into the ids attribute of a View of posts filtered by Post ID in a shortcode attribute. [wpv-view name="Your View Name" ids="[get_empty_excerpt_ids]"] Relevant Documentation: |
|
2 | 5 | 6 years, 1 month ago |
Viewing topic 1 (of 1 total)