8 Ways to Get User ID in WordPress

In this tutorial I will show you code examples on how to find current user ID, how to get user ID by username, email and meta data. All the examples work for WooCommerce too.

Ultimate Guide to meta_query – Get and Order Posts by Meta Values

Basically meta_query parameter of WP_Query allows you to search WordPress posts / pages / custom post types by their meta data and sort the result.

Use <Tab> to Indent in WordPress HTML Editor

How often do you copy code snippets from another websites? What do you like the most – code with the tabs or with a lot of spaces? Do you see the difference?

Post Preview Button for WordPress Fullscreen TinyMCE / HTML Editors

I think that default WordPress fullscreen editor is very easy to use. But there is one problem – when you want to preview your post on the blog, you need to switch off the fullscreen mode each time. It is very painful.

2 Ways of Creating Separate Blog Pages in WordPress

I know a lot of WordPress-based websites where a static page displays on the homepage and blog posts section is placed separately on a different page, e.g. yourwebsite.com/blog.

So, how to do that on your own website? I will show you 2 methods.

How to Create a Slider for Images In Posts

Slider in the post on my test website.

In this tutorial we will use WordPress media uploader and Owl Carousel to create a beautiful responsive slider (with swipe support) from images uploaded to a post.

Duplicate Posts, Pages and Custom Post Types Without Plugin

Duplicate posts, pages and custom post types in WordPress without plugins

Simple but Effective WordPress Spam Protection without Plugins

If you don’t use an antispam plugin, you probably have thousands of spam comments. Most of them left by spambots.

11 Steps for WordPress Better Security

Simple enough and step-by-step tutorial about protecting your blog.

Meta Boxes

WordPress meta box for Pages custom post type with multiple fields

How to remove default metaboxes, how to create your own custom metabox on the fly. The complete tutorial.