Bernard Aybouts - Blog - MiltonMarketing.com

Dynamic WordPress: Displaying Current Year with PHP Code

By |March 19, 2018|WordPress|

📘 Displaying the Current Year in WordPress (Without Hardcoding!) Why It Matters: Using dynamic dates (like the current year) ensures your copyright footers and date-based references stay up to date automatically—boosting professionalism and reducing manual updates. ✅ Method 1: Using functions.php (Safe Theme-Based Method) 👨‍💻 Step-by-Step: Access Your Theme’s functions.php File: Go to[ ► ]

Disable the Admin Bar in WordPress

By |March 19, 2018|WordPress, Computer Programming Languages, Custom Code|

How to Disable the Admin Bar in WordPress Follow these steps to disable the Admin Bar either for all users or specific users/roles within WordPress. 1. Disable Admin Bar for All Users Add the following snippet to your theme's functions.php file to disable the Admin Bar for all users. Remember to backup your[ ► ]

Go to Top