Category: Snippet

  • Common jQuery Mistakes (and How to Avoid Them Easily)

    Despite the rise of modern frameworks like React and Vue, jQuery is still very much alive in 2024. The latest jQuery 3.7.1 is actively maintained, and jQuery 4.0.0 is currently in beta testing with exciting new features. But here’s the thing – even experienced developers still make the same jQuery mistakes that can slow down websites, create…

  • order by current user id in wordpress

    To order queries by the current user ID in WordPress, you can use the get_current_user_id() function to retrieve the current user’s ID and then include it in your custom query. Here’s an example using the WP_Query class to retrieve posts ordered by the current user ID:

  • Redirect CMS Category to CMS Page [Prestashop]

    Redirecting a category to a specific page in PrestaShop can be achieved by modifying the .htaccess file or by the URL forwarding feature and with PHP within PrestaShop. Here are the steps for all methods:

  • Php search script within a radius

    Php search script within a radius

    If you are looking for a php seach script to find the items ,profile or anything within a defined radius ,then you have to use geometric formula. In this script we will use php , mysql and google geocoder.

  • Javascript sleep, javascript wait, javascript setTimeout

    Javascript sleep, javascript wait, javascript setTimeout

    When you are trying to call same ajax function again and again ,then it may be possible that some calls are not acknowledged.i experienced this problem so i’m sharing this article Javascript sleep, javascript wait, javascript setTimeout with you . Sleep function  stops the executing thread for given amount of time. for example: we have…