Using PHP in WordPress menus
-
Hi,
Hope this is the right place for this question.
I want to use php as the link for a cutom link item in a wordpress menu so instead of https://domain/thislink/ I want to have https://domain/<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>/
How do I get WordPress to render php properly? I found this, , which uses the Walker class to render a description. I’m not a php coder so couldn’t adapt that myself for WP to be able to render php as the link. I’m not even sure if I’m on the right lines with that link.
I hope this makes sense!!!
- The topic ‘Using PHP in WordPress menus’ is closed to new replies.