Category: Wordpress

List of WordPress Sanitize functions or methods for DB query variables

When working with SQL database queries in WordPress, it’s essential to sanitize input data to prevent SQL injection vulnerabilities. WordPress provides several functions and methods for sanitizing database query variables. Here’s a list of commonly used ones: Using these sanitization functions and methods appropriately in your WordPress code ensures that input data is properly sanitized […]

How to use the wp_footer WordPress hook to add a custom script or HTML?

Below are WordPress code examples to use wp_footer WordPress hook to add a custom script or HTML before closing of body tags. This function helps to call Google Analytics or any third-party code down below before closing the body tags. It is recommended to add these custom functions inside the child theme to avoid code […]

15 Must-Have Tools for Every WordPress Freelancer

In the dynamic world of freelance WordPress development, having the right set of tools can significantly enhance productivity and streamline workflows. As a WordPress freelancer, leveraging cutting-edge tools can help you stay ahead of the curve, deliver high-quality projects, and manage your business efficiently. In this comprehensive guide, we’ll explore 15 must-have tools for every […]

WordPress PHP best practices for expert developers

For expert developers working with WordPress and PHP, following best practices is crucial for building secure, scalable, and maintainable code. Here are some recommended best practices: Use Child Themes When customizing a theme, create a child theme instead of modifying the original theme files. This ensures that your changes are not lost when the theme […]

WordPress comparison with other CMS

WordPress is considered the best CMS platform and website builder in the world. It supports 43% of all websites on the Internet. Here’s how it compares to other CMS platforms: Comparison to other CMS: Joomla Joomla! is another popular CMS. It provides a good balance between flexibility and usability. However, its learning curve is higher than that of WordPress.  Drupal: Drupal is known for its robust and flexible framework, making it ideal for […]

WordPress website are at 25% market share

Now wordpress takend 25 % of market share as per Web technology surveys http://w3techs.com/technologies/history_overview/content_management/all/y In 2003 Matt Mullenweg and Mike Little fork b2 and created WordPress. As wordpress freelancer we seen tremendous growth in wordpress usage since 2011. Three main aspect of wordpress is Its Lightweight, Simple User & SEO friendly. Historical yearly trends in […]

WordPress disable all update notification

Here is code to disable WordPress all update notification Incoming search terms:com co inwww www (137)com co inwww (65)www www co in (49)wwwwww com (26)co inwww (24)wwwwwwwwwcom (15)co in co in co inwww (14)WWW WWWwww com co in co in co inwww www com (14)Search www www www (12)https:// www jokes4us com is a greayvzw […]

How Separate First post from Other in wordpress loop

As wordpress freelancer i found way to first post from Other in wordpress loop. Below is php code for same.

How to add Custom field in custom portfolio type post

Here is solution to add custom field in your custom portfolio entries, for this you must activate the “custom fields” manually. Open up portfolio.php OR php function where you registering post type “portfolio. portfolio_register() and search for: Replace it with

How to check post or page has an attachment in wordpress

Here is code to check post or page has an attachment in wordpress. You have to in wordpress loop.

How to Check the_content is empty in wordpress

Here is code to check the_content is or not empty in wordpress.

How to Redirect User to a custom page after registration

Below is code to redirect User to a custom page after registration Thanks TheDeadMedic for the tip!

Latest New WordPress 3.6 Features

WordPress co-founder Matt Mullenweg announced the release of the latest version WordPress 3.6 which has beed in honor of Canadian jazz pianist Oscar Peterson. Latest New WordPress 3.6 include follwing Features a beautiful new blog-centric theme  Twenty Thirteen theme, bullet-proof autosave and post locking, a revamped revision browser, native support for audio and video embeds, […]

How to Limit the size of the post excerpt in WordPress

Here is code to Limit the size of the post excerpt in WordPress. Add below code into function.php it will set limit 20 charactor.

wordpress new dashboard

Gang of web designers and developers teamed up to explore how the modern version of wordpress look like. * Smple, uncluttered design; free of excessive decoration and focused on your content. * use beautiful webfonts, legible typography that’s consistent in every browser. * Responsive design that’s tailored to PCs, tablets and mobile smartphones devices * […]

How to Add google AdSense code inside post using wordpress Shortcode

The following code will allow you Add google AdSense code inside post using wordpress Shortcode which display a 468×60 AdSense unit wherever you place the [adsense] shortcode