Tag queries
How To Run Safe Database Queries In WordPress With $Wpdb
The global $wpdb object lets you query the WordPress database directly. Use it when the standard functions are not enough, and always use $wpdb->prepare() to protect against SQL injection.
How To Add Content Before Or After Posts With The The_Content Filter
The the_content filter runs every time WordPress prints the content of a post. Hook into it to add a call to action, an author box, an ad or any extra…
How To Style A Sticky Header With Css Scroll-State Container Queries
What it is: scroll-state queries let CSS know if an element is currently stuck, snapped or scrollable. Before this you needed JavaScript with a scroll listener to add a class…
How To Use Css Container Queries For Component-Based Responsive Design
Media queries react to the screen size. Container queries react to the size of a parent container, so a component adapts to the space it actually has. This is ideal…
How To Use Css Clamp() For Fluid Typography And Spacing
The clamp() function takes three values: a minimum, a preferred value and a maximum. The result grows with the screen but never goes below the minimum or above the maximum.…


