Archives for Wp Tips - Page 6
Check page in WordPress
As we all are familiar with the use of pages in wordpress. Here we are discussing about the detection of pages or a specific page in wordpress. We have a default function is wordpress, that is : <?php is_page(); ?>…
Check user logged in or not in WordPress
Sometimes we need to check a if user is logged in on the website or not. As in a case we want to show a message to the current user or we want to show some specific content to a…
Solution to ReferenceError: ajaxurl is not defined
Sometimes we face "ReferenceError: ajaxurl is not defined" while working with ajax in wordpress. Ajax will not work in this case and we will get this error while checking console by inspecting our browser. Simple solution to resolve this issue…
How to get lat long from address in WordPress
Sometimes in wordpress we need to get latitude and longitude of a specific location from a address. Actually sometimes it is required to show location map, to get exact position of a particular place or we can use it to…
How to order wordpress post by custom field date
As we know that the sorting of wordpress default posts are according to the published date. Sometimes we create a new post type as per our requirements and those post type are called custom post types in wordpress terminology. So,…
get string between two words
Here we are discussing the method to get a string between two words or two characters. As we know that we have several string functions which are useful while we are performing this type of task. This can be done…