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.
A show-hide that still works(?not tested lately); changes toggle content.
When form displays "extra markup": empty p tags, etc
Forms | Type: PHP
Add gradients without the use of background images.
CSS3 | Type: CSS
This can be useful for IE issues.
Move admin bar to bottom to get it out of the way of menus at top on fixed heads.
CSS, Custom Admin, Users | Type: CSS
Yoast Metabox is huge, and it gets in the way of a lot of stuff. Move it to the bottom of the edit screen with this handy snippet.
WordPress, Yoast | Type: PHP
Number of possible solutions; have not tested any of them yet. Maybe trying to make this too complicated: what about serving different template parts based on user type? Added Multiple…
CPT, WordPress | Type: PHP
How to display a repeater within a repeater (with conditionals).
ACF | Type: PHP
Paging a query on static page set as home page (clicks to /page/2 but continues to show original items)
WP Query | Type: PHP
Useful php date/time formulas.
¡Important!, PHP | Type: PHP