Code Snippets

How to add custom login and logout links in the wordpress navigation or menu programmatically ?

You can add this code to your active theme’s functions.php file. I would recommend you to use Child theme. The code checks if the user is logged in or not and if the current menu is the primary menu. Then, it adds the appropriate login or logout link to the menu items. The wp_login_url() and …

How to add custom login and logout links in the wordpress navigation or menu programmatically ? Read More »

Toolset Conditionals not working in Divi Theme Builder Latest Version

Most of the users are facing this issue where the Toolset conditionals have suddently stopped working in Divi Builder. There is a technical reason behind it. So this is how conditionals were used earlier by most of you guys. OLDER WAY OF USING WPV TOOLSET CONDITIONALS LATEST WAY OF USING WPV TOOLSET CONDITIONALS The reason …

Toolset Conditionals not working in Divi Theme Builder Latest Version Read More »

How can i get only bottom level terms of a taxonomy or category in views?

How can i get only parent terms of a taxonomy ? This is a very popular question asked in many WordPress forums and Toolset Support and as a result, i am going to write a code snippet. Lets assume, that the depth of taxonomy hierarchy is 3 and is explained by the following example of …

How can i get only bottom level terms of a taxonomy or category in views? Read More »

Redirect from a primary domain to its subdomain

Sometimes we find it really difficult to redirect from a main or primary domain to the subdomain of the same primary domain using .htaccess. For example if you want to redirect from http://www.lynda.com to http://new.lynda.com To achieve this, just grab this snippet and paste it in the .htaccess file in the root of your primary domain. …

Redirect from a primary domain to its subdomain Read More »

upgrade.php issue

Problem Solved: upgrade.php?_wp_http_referer=%2Fwp-admin%2F

This is a very common issue which happens when WordPress was not successfully updated. If this happens, then the admin is not able to log into wordpress dashboard as it redirects to this url Problem Solved: upgrade.php?_wp_http_referer=%2Fwp-admin%2F . Below are simple steps to fix this issue in 2 minutes. Open File manager through hosting account …

Problem Solved: upgrade.php?_wp_http_referer=%2Fwp-admin%2F Read More »

Scroll to Top