If you have been 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 the most useful SQL queries you can use to clean up your WordPress […]
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 […]
Adding Column Layout Shortcodes to Your WordPress Theme
Altough shortcodes are made to be used in post content, you can sometimes need it’s functionality in your wordpress theme designs. Here i will show you how to easily use any shortcode in your page templates.
Shortcodes make life easier for any WordPress blogger. I can easily list subpages, add post meta elements, and even query posts using shortcodes. You can do as much in your widgets too, you just need a quick fix to enable shortcodes in your widgets. To […]
You can create shortcodes for any function in wordpress. It’s so easy to create one and also so functional. In this post i will show you how to use a shortcode in another shortcode.
In wordpress there are many ways to hide your members only content. You can either install a plugin to hide your posts, or you can create password protected posts that only members can access. But there is another way; Shortcodes. Here i will explain you […]
In the first part, Advanced adsense targeting for your post content Pt.1, I explained you how to wrap your post content with targeting tags automatically using wordpress filters. In the second part i will show you how to exclude certain parts of your posts from […]