If you are using WordPress for a long time, it is possible that you have many spam comments, revisions, transients cache etc. on your wp database. In this post, I listed most useful SQL queries you can use to clean up your WordPress database and reduce its size around 85%! [toc] Tools Required My favorite tool for […]
Did you know that WordPress has a mobile detect function already? In this post, I will show you how you can use wp_is_mobile function to create a simple shortcode to hide certain parts of your posts from mobile visitors or the other way. Demonstration Desktop View Mobile View The Shortcode wp_is_mobile function returns true when […]
If you want to insert the same tags to every post on your blog post, you can set it to be done automatically using PHP. Using this simple snippet, all tags will be added automatically on post save and publish.
WordPress usually use a constant number of posts for all your category pages, index, and also search results pages. For search pages, 10 posts are not usually enough. To change this behavior, a simple query filter will do the trick.