Create New Admin Account With PHP Code

Create New Admin Account With PHP Code

Hey there! It has been a long long time since my last post! So here is my gem of the day 😉 Personally, I use this code very frequently and it has saved me from a lot of trouble many times. There are times when I do not have access to a site’s with administrator privileges, nor to the phpMyAdmin…

Read more

Best Free CSS Optimization Tools

Best Free CSS Optimization Tools

This is not a WordPress related article. WordPress has some amazing plugins that will optimize the CSS for you. Still, there are cases were installing WordPress site for a client is not beneficial. If the site’s requirements is from one to few pages, with static content, the best choice is to build a simple HTML template. Let’s look at at the case…

Read more

How To Add CSS Code In MU Plugin

How To Add CSS Code In MU Plugin

A must-use plugin (also called a ‘mu-plugin’) is a plugin that will always be activated by default, without you needing to do it yourself. To activate a mu-plugin, you just have to upload it in the right directory, and WordPress will automatically know that this plugin must be used. Moreover, a mu-plugin cannot be deactivated: it will always be executed,…

Read more

Show the Featured Image Inside A Post On A Site Using Shortcode

Show the Featured Image Inside A Post On A Site Using Shortcode

If you are looking how to insert a featured image inside a post, you can try the following solution.  Add the following code inside the functions.php of your theme: add_shortcode(‘thumbnail’,’thumbnail_in_content’); function thumbnail_in_content( $atts ) { global $post; return get_the_post_thumbnail( $post->ID ); } Control the features images with the shortcode: [thumbnail size=medium align=right] The side can be changed to small, medium and…

Read more