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”
This post is about the
file_get_contents(); functions in PHP. Jump to file_get_contents
Let’s say you want to display an external webpage at your own domain name, or even a domain that isn’t yours, the
readfile(); function can do it. Here’s an example: Continue reading “Readfile and File Get Content PHP Function”