How to add Calendar in Sidebar manually without plugin

Discussion in 'WordPress' started by deluxdon, May 6, 2009.

  1. #1
    One can add calendar easily through widget in Wordpress or using plugin but i want to know what to add if i want to display calender in my sidebar (code) :confused: Its simple but don't know which code to add manually.

    Appreciate quick help for this.

    DON.
     
    deluxdon, May 6, 2009 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Try:

    
    <?php get_calendar(); ?>
    
    Code (markup):
     
    mizaks, May 6, 2009 IP
  3. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,482
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #3
    Wow. It works like a charm. Thanks.

    No more suggestions needed.

    DON.
     
    deluxdon, May 6, 2009 IP
  4. anotherposter

    anotherposter Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks a lot MIZAKS!

    that was really cool...

    Will try it out right now...!
     
    anotherposter, May 7, 2009 IP
  5. anotherposter

    anotherposter Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    But wait a minute...
    I tried it and it looks not better than the default wp calendar in the widgets section.

    Then what's the objective of using this one?
     
    anotherposter, May 7, 2009 IP
  6. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #6
    There is no difference. OP wanted to know what the tag was to hard code into his theme.
     
    mizaks, May 7, 2009 IP
  7. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can change the appearance by messing with the stylesheet, or you can replace it with a plugin. There are heaps of great looking calendar plugins.
     
    Cash Nebula, May 9, 2009 IP