Barebones by Benchmark
Documentation
Snippets
  1. Home
  2. Snippets

Snippets

Hints, tips and code snippets for professional WordPress developers working on fully custom builds or with our boilerplate theme.

All MediaPerformancePluginsQueriesREST APITroubleshooting

Troubleshooting

Assign a custom template to one or more post types

View snippet →
Queries

Order WordPress search results by post type

View snippet →
REST API

Include Advanced Custom Fields Flexible Layout content in the REST API

View snippet →
Performance

How to defer scripts in WordPress

View snippet →
REST API

WordPress Rest API: filter Posts using a tax_query

View snippet →
Media

Allow SVG media images to be uploaded to WordPress

View snippet →
Plugins

Include ACF flexible content fields in search queries

View snippet →
REST API

WordPress REST API: 'Access-Control-Allow-Origin' header contains multiple values

View snippet →
Performance

Cloudflare: enable full page caching with WordPress

View snippet →
Troubleshooting

“Sorry, you are not allowed to access this page” displaying in WP Admin

View snippet →
Queries

Perform a wildcard search in a WordPress meta query

View snippet →
Troubleshooting

Visual editor not loading on a site loaded through Cloudfront or other proxy services

View snippet →
← Previous
123
Next →

© 2026 Benchmark Studios Limited

Terms & ConditionsPrivacy Policy
Visit benchmark.co.uk →