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.
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.
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?
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.
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.
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.
If you don’t use an antispam plugin, you probably have thousands of spam comments. Most of them left by spambots.
Simple enough and step-by-step tutorial about protecting your blog.
How to remove default metaboxes, how to create your own custom metabox on the fly. The complete tutorial.