Title: [Plugin: WordPress Navigation List Plugin NAVT] php in before/after?
Last modified: August 19, 2016

---

# [Plugin: WordPress Navigation List Plugin NAVT] php in before/after?

 *  [lauras2009](https://wordpress.org/support/users/lauras2009/)
 * (@lauras2009)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-navigation-list-plugin-navt-php-in-beforeafter/)
 * I want to be able to show/hide nav sub-items (one level down) if the user is 
   logged in (or not logged in).
 * I was hoping to be able to put this in the “Insert before item” box:
    <?php if(
   $user_ID != ”) { ?>
 * and this in the “Insert after item” box:
    <?php } ?>
 * but the PHP isn’t getting read … it’s just showing up in the HTML as PHP. I do
   have PHP exec plugin installed so I thought that the PHP would be interpreted…
 * Any advice or guidance on this would be much appreciated.
 * Laura S.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [hlwilson3rd](https://wordpress.org/support/users/hlwilson3rd/)
 * (@hlwilson3rd)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-navigation-list-plugin-navt-php-in-beforeafter/#post-1663498)
 * I am also trying to use those code blocks. Different utilization, but same result.
   The code is being ignored. We’re you able to resolve this in any way?
 *  Thread Starter [lauras2009](https://wordpress.org/support/users/lauras2009/)
 * (@lauras2009)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-navigation-list-plugin-navt-php-in-beforeafter/#post-1663499)
 * Well I gave up trying after I realized that the plugin itself pays attention 
   whether the user is logged in or not, so it automatically hides the sub-menu 
   items if the user isn’t logged in.
 * Something I ran into recently makes me think it’s worth trying to put the PHP
   in directly (rather than using the <?php ?> tags (if you’re using PHP)
 * Sorry, that’s probably not much help …
 * Laura S.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WordPress Navigation List Plugin NAVT] php in before/after?’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-navigation-list-plugin-
   navt.svg)
 * [Wordpress Navigation List Plugin NAVT](https://wordpress.org/plugins/wordpress-navigation-list-plugin-navt/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-navigation-list-plugin-navt/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-navigation-list-plugin-navt/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-navigation-list-plugin-navt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-navigation-list-plugin-navt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-navigation-list-plugin-navt/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [lauras2009](https://wordpress.org/support/users/lauras2009/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-navigation-list-plugin-navt-php-in-beforeafter/#post-1663499)
 * Status: not resolved