I have a very simple question. In the footer of my page, I am using the %admin% variable to display the link to the WP admin dashboard. I have other links beside the Site Admin that are each separated by a " | ". However, when I'm not logged in, the Site Admin link disappears (as it should) but there still remains a " | " next to one of the links and it looks goofy.
I've attempted to solve this problem by using a super simple PHP script shown below.
PHP Code:
<?php if ($admin_link !== null) {echo " | ";} ?>
However, this does not work. I've attempted other tests like "!== 0" or "isset($admin_link)" but those do not work either. I am confused on the structure of this variable $admin_link it seems. What should I be using?
For the record, I am running WordPress 2.9.2 and Atahualpa theme 3.4.6.