In WordPress we use wp_enqueue_script and wp_enqueue_style functions to add our script and stylesheet to the page. By default these functions print <script> and <link> tags as normal. But sometimes […]
This is might be a funny post. You probably came here from google search by misspelling. Actually you are looking for reference of untrailingslashit or trailingslashit WordPress function. You wrote the […]
You must know the use of WordPress custom field (also known as Post Meta). You might see that if you have many custom fields in your WP then you don’t […]
WordPress dbDelta returns a SQL error when updating a table. It returns “Multiple primary key defined“. I was stuck for two days on this problem. WordPress shown me following error message […]
WordPress Filter Hooks on Creating Slug – Check Availability of Slug if That is Used by Post, Page, Taxonomy, or by Plugin I did not find any filter hook for choosing […]
A very easy way to publish your WordPress post just right now but post date will be a future time. Display future scheduled post to visitors. Here I will show you a very simple trick to do this. Just copy my simple PHP code snippet into your theme functions.php
A guide to add extra custom meta field with WordPress user profile. A complete code snippet and a sample demo plugin for plugin developer to learn and implement custom user meta in their own plugin.
Change your WordPress default media upload directory to new location. Store your media files in new location instead of wp-content/uploads . WordPress Media Library will access media files form your new directory. Here I am showing your how to do that.
Today I have discovered a strange problem of WordPress / Apache. WordPress / Apache is unable to handle an URL with a query string parameter containing a link of external […]
You may think your website is very new and not much popular. So none can try to hack your WordPress. If you think so then I will tell you are […]