NASTIA

I’m a WordPress enthusiast, proud to be WPMU DEV-ian, site builder

  • 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, unless it is uninstalled. Originally, mu-plugins were only available for WPMU, for those sites which used multiple (multisite) blogs. Back then, a mu-plugin was just a plugin activated for all blogs. Fun fact, that the WordPress is loading mu-plugins in alphabetical order, before normal plugins. All mu-plugins must be placed at wp-content/mu-plugins by default, in case /mu-plugins/ folder is not there, feel

  • 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 large values and/or align can be none, center, right or left. Another way to control the thumbnail size with size='array( 300, 200)'. It will look like this [thumbnail size='array( 300, 200)'] Change the array value to a different number to achieve the result you need.

  • So you've migrated a site to a new host with a new domain and forgot to change the site's URLs. No worries a simple solution you can try is to change them within the phpMyAdmin. Go to your cPanel and locate the phpMyAdmin icon. Click on it and you will be redirected to it. Default caption   Make sure you have the new database selected, then run some sql updates and replacement commands on the tables notably, wp_options, wp_posts, wp_postmeta. Don't forget to replace wp_ prefix with your own ;) ​ UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl',

  • Web designers are always looking for shortcuts to save time in their routine. Many great dev tools ease the process, and it’s now easier than ever to jump in and get a finished product quickly. Free online code generators will help you iterate and build onto your code quickly. Once you know what code you need to generate, it’s just a matter of finding the right tool for the job. These are my 10 favorite tools for generating CSS, and they’re all completely free to use. I have gathered in one place the best free online code generators that will help build faster the design you need. Once you know what code you need to generate, it’s just a matter

  • With video, there are so menu thing that you can explain to your visitors. You can upload your videos on Youtube, Vimeo, depending on your preference and how long your video is. You should never upload videos to your WordPress site. But this will be analysed in another article. In this article I explain how to use the  standard method, embedding to place videos in WordPress Once you create an account, upload a video to Youtube or Vimeo sites, let's see how to embed it into your WordPress page or post   Simply paste the link URL WordPress now supports oEmbed to make embedding videos into your blog post even easier. oEmbed is a format which allows URLs to point to embedded content