[SOLVED] Very simple: Conditional "|" Separator
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:
For the record, I am running WordPress 2.9.2 and Atahualpa theme 3.4.6. |
try using 'is_user_logged_in()' ie
HTML Code:
<?php if (is_user_logged_in()) {echo " | ";} ?> |
Worked like a charm. Thank you!
|
All times are GMT -6. The time now is 06:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.