I like that we can kill WordPress AND customize the output! Drop this code into functions or plugin at the part you want to kill WordPress and modify the markup to your liking! Even has CSS…Continue reading “Customize wp_die output”
I recently deleted myself out of the network – add this bit of code to your theme’s functions.php file to add yourself back. Once your Super Admin privileges have been restored you can remove this code from your theme.
You can use this to add the current blog ID and / or current user level to your body class. It can be modified in any way of course.
Problem: Current post is also showing in the recent posts sidebar “Ephemera” widget. This code helped me solve the problem.
This will show a list of categories hierarchically without a widget title. You must have posts published to categories for them to show up.
Let’s make a sentence with multiple line-breaks in WordPress.
This is a simple and short method to pull the current user role title, user ID, and site id (MultiSite) then include it in the admin body class.
I am often faced with a premium theme bogged down with too many resources being fetched on page load. The following helps to get rid of bloat.
A few days ago I wrote a post about
file_get_contents();. For April Fools day I decided to put it into action using
file_get_contents(); to effectively take a local news article and change whatever I wanted. Continue reading “April Fools Joke Using File Get Contents”