• The code in the side bar is exactly this:

    • <?php ec3_get_calendar(); ?>
    • Anyway to make that viewable to admins only?

Viewing 2 replies - 1 through 2 (of 2 total)
  • In ec3_get_calendar(), include a cookie check. I believe this becomes more of a PHP question than a WordPress question. See examples in thw WordPress code, especially the dashboard-side, i.e. ~/wp-admin.

    Thread Starter provider1

    (@provider1)

    Okay, here is what I have found:

    Useing Conditional Tags might be the way to go. The one I found specifically would be:
    ————————————————-
    is_author(‘Elite Hacker’)
    When the archive page for the Author with Nickname “Elite Hacker” is being displayed.
    ————————————————–
    Here is the code I entered:

    <?php if (is_author(‘admin’)) { ?>

    • <?php ec3_get_calendar(); ?>
    • The page comes up with:
      Parse error: parse error, unexpected $

      Theres something simple im missing im sure. Although id reather this be tied to a user lvl. Admins are lvl 10, if I could tie it to that, I would prefer that.

      Help?!?

      AT

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calender for admins only?’ is closed to new replies.