WordPress.org

Support

Support » Plugins and Hacks » WordPress Navigation List Plugin NAVT » [Plugin: WordPress Navigation List Plugin NAVT] php in before/after?

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

  • 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)
  • 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?

    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.
Skip to toolbar