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 […]

The Ultimate Checklist for Hiring a WordPress Freelancer

When hiring a WordPress freelancer, it’s important to consider their skills, experience, portfolio, and references. Here’s a checklist to guide you through the process: Skills and Experience Portfolio and References By evaluating these aspects, you can make an informed decision when hiring a WordPress freelancer.

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 […]

10 Essential Skills Every WordPress Freelancer Should Know

In the ever-evolving landscape of digital entrepreneurship, WordPress freelancers play a pivotal role in helping businesses establish and maintain their online presence. As a WordPress freelancer, mastering a diverse set of skills is crucial for success in this competitive field. Whether you’re a seasoned professional or just starting your freelancing journey, honing these ten essential […]

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 […]

How to send pdf file attachment to user using contact form 7

Here is code to send pdf file attachment to user using contact form 7. 1076 is contact form 7 ID and tdsfile form field is having PDF url form local server (http://localhost:90/pidi/wp-content/uploads/2015/09/test.pdf) which i want to send as attachment.

How to display selected category names of custom post type in wordpress

Here is code snippet to display selected category names of custom post type in wordpress. To get the categories of a custom post type you have call get_the_terms() and setup the registered category name like this <?php $terms = get_the_terms( $post->ID , ‘myposttype_category’ ); foreach ( $terms as $term ) { echo $term->name; } ?>

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 to edit rel attribute of the_category link in wordpress

Here is hook code for wordpress to  edit rel attribute of the_category link in wordpress

How to display only second level child menu in wordpress

Below is snippet code to display second level menu in wordpress. Put below php code into your theme/functions.php file add_filter( ‘wp_nav_menu_objects’, ‘my_wp_nav_menu_objects_sub_menu’, 10, 2 ); // filter_hook function to react on sub_menu flag function my_wp_nav_menu_objects_sub_menu( $sorted_menu_items, $args ) { if ( isset( $args->sub_menu ) ) { $root_id = 0; // find the current menu item […]

How to restrict user other than administrator to acess wp-admin in wordpress

Here is code restrict user other than administrator to acess wp-admin in wordpress. Put below code into your theme/funtion.php file

How to reset user id in wordpress for new signup registration

Here is way to reset user id in wordpress for new signup registration. First Delete all your unwanted users from backend. Now go to phpmyadmin to acess you database. Click on SQL tab from top and Enter below SQL COMMAND and Click GO button. ALTER TABLE wp_users AUTO_INCREMENT = 15 That’s it.

How to manage wordpress comments using php mysql

Here is way to manage your wordpress comments using php mysql queries. Some things to note Don’t forget to do a backup of your database before testing any of the queries below. Don’t forget to change the default table prefix wp_ by the one used by your database. Delete all spam comments When you have over 100,000 […]