A collection of (mostly) WordPress-related snippets and references I’ve found useful and worth keeping where I can find them. Feel free to use what you like, and point me to some better snippets or references.
Video Backgrounds»
Full page video backgrounds.
Video | Type: Other
Visually hidden, still available for screen readers»
This is useful for hiding labels while relying on placeholder text for sighted visitors. The alternative (display:none;) hides items from screen readers. clip-path: inset(100%); clip: rect(1px 1px 1px 1px); /*…
CSS | Type: CSS
WordPress Enqueueing Guide»
About enqueueing styles and scripts in WordPress.
WP/CP | Type: PHP
WordPress Meta Query (Basic Example)»
Meta Queries compare multiple keys and values.
WP Query, WP/CP | Type: PHP
WordPress Template Tags»
Sometimes you need to turn a WP template tag into a PHP variable, so you can construct a proper bit of code.
PHP, WP/CP | Type: PHP
WP eCommerce Tricks»
Check SOC Racing for WP eCommerce implementation.
eCommerce | Type: Other
WP Mail SMTP plugin settings»
The following settings use Gmail as an example, but they apply for webhost SMTP server as well. From Email: your full Gmail address From Name: name displayed in the emails…
Gmail MX | Type: Other
WP_query Sort by Checkbox Field Values»
Sorting a query by custom field with values array (checkbox, multi-select, etc).
WP Query | Type: PHP
WP_query with Events Grouped by Month»
This is intriguing, but I've not tested it. Check the 2 links given with this solution.
ACF, WP Query, WP/CP | Type: PHP
WP_query with Events Grouped by Month II»
Also untested.
WP Query, WP/CP | Type: PHP