dirkdewever

Create a Custom Shortcode for WordPress Menus with Translation Support

In this tutorial, we will guide you through the process of creating a custom shortcode in WordPress that generates menus. This custom shortcode will allow you to display menus on your website, with the added benefit of optional translation support for multilingual websites using plugins like WPML. Shortcodes are a powerful feature in WordPress, enabling […]

How to Add Pageviews Count Column to WordPress Posts, Pages, and Custom Post Types

Tracking pageviews is an important aspect of managing a website. In this tutorial, we will explore how to add a “Pageviews” count column to WordPress posts, pages, and custom post types. This feature allows you to keep track of the number of views each content item receives, providing valuable insights into your site’s popularity. Additionally, […]

Protect Email Addresses and Phone Numbers from Spambots in WordPress

In this tutorial, we will learn how to protect email addresses and phone numbers from spambots on WordPress websites. By obfuscating the contact information and adding the appropriate mailto or tel links, we can ensure that the contact details remain hidden from spambots while still providing a user-friendly way for visitors to contact us. We […]

Add Custom Fields to User Profiles in WordPress Without Using Plugins

WordPress provides user profiles as a fundamental feature to store essential information about users. However, the default profile fields may not always meet specific requirements for your website or application. In such cases, adding custom fields to user profiles can be a powerful solution. In this tutorial, we will guide you through the process of […]

How to Implement Custom Pagination for a Custom Post Type in WordPress

In this tutorial, we will guide you through the process of implementing custom pagination for a custom post type in WordPress without relying on plugins. Pagination is a crucial feature for websites that have a large number of custom post type entries. By following this tutorial, you will learn how to create a books.php template […]

How to Add (External) JavaScript and CSS to the Head via functions.php in WordPress

JavaScript is an important part of modern web development, allowing developers to add interactivity and dynamic behavior to their websites. WordPress provides several ways to add JavaScript to your website, and in this tutorial, we will focus on adding external JavaScript to the head of your website via functions.php. Here are a few examples of […]