NASTIA

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

ARCHIVE

EVENTS • TIPS • PHOTOS

  • 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',

  • I've recently moved it to a new apartment with a great sea view and now I am face to face with some serious issues - how to arrange my living room.First, there are furniture everywhere - furniture I do not need.  Funny thing that, at the same time my parents moved to a new place as well, imagine the chaos.My mom managed to "present" me her furniture  so I end up with three couches one lounge chair that I do not know what to do ( sorry mom, I hope you will not read it and if you are - I love you so much)And here I am, in a small living room with 3 coffee tables (don't ask), 3 couches and one office

  • 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