WordPress.org

Ready to get started?Download WordPress

Forums

Adding Calendar and Recent posts (14 posts)

  1. wainashe
    Member
    Posted 8 years ago #

    Hello,

    Does anyone know how to add Calendar and “Recent Posts� into the Kubrick template? Thank you.

    I am sure some other "dumb" newbie’s like me have asked this question before, Hence, I think apologies in advance is due.

    Thanks a million!

    Bill

  2. Joshua Sigar
    Member
    Posted 8 years ago #

    The template tag to display the calendar is below.
    http://codex.wordpress.org/Template_Tags/get_calendar

    And follows is a plugin to display recent post
    http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/

  3. wainashe
    Member
    Posted 8 years ago #

    alphaoide,

    Thank you. pasted the code into style template... Unfortunately, it did not work out for me. Any idea how to make it work? Thanks a million.

    Bill

  4. Joshua Sigar
    Member
    Posted 8 years ago #

    Style template? which one is that? It goes to index.php. Just one line for the calendar.

    <?php get_calendar(); ?>

    How did it not work out for you? What did you get? What output?

  5. wainashe
    Member
    Posted 8 years ago #

    Hi,

    Thank you. Here all the theme templates I have but I do not see "index.php"... is it in one of those?

    Stylesheet
    Archives
    Archive Template
    Search Template
    searchform.php
    Post Template
    Main Template
    404 Template
    Links
    Page Template
    Popup Comments Template
    Sidebar Template
    Header Template
    Comments Template
    Footer Template

    Thanks a million..

    Bill

  6. moshu
    Member
    Posted 8 years ago #

    Main Template = index.php
    But I guess you'd like the calendar in the sidebar --> Sidebar Template = sidebar.php

  7. wainashe
    Member
    Posted 8 years ago #

    Are you saying I should paste above code in Sidebar template? Should I put anywhere in the template or is there a particular place? Please help. Thank you.

    Bill :-)

  8. moshu
    Member
    Posted 8 years ago #

    Yes, in the sidebar.php - and anywhere you'd like to be displayed. I'd suggest either on the top, after
    <div id="sidebar">
    or at the bottom, just before the closing
    </div>

  9. wainashe
    Member
    Posted 8 years ago #

    Thanks. It worked very well for me. Do you know the code to pull up "Recent Posts". Thanks a million.

    Bill

  10. moshu
    Member
    Posted 8 years ago #

    Read the instructions for the plugin.

  11. wainashe
    Member
    Posted 8 years ago #

    Thank you. Where can I find "instructions for the plugin"? Any link?
    Sorry I am newbie....:-)

    Bill

  12. moshu
    Member
    Posted 8 years ago #

    IN this thread, in the very first reply to your initial question, there is a link to a plugin that displays the recent posts.
    Click, read, download, read, install, read, activate, read... :)

  13. wainashe
    Member
    Posted 8 years ago #

    The link broken... the server down! :-)

    Thank you

  14. moshu
    Member
    Posted 8 years ago #

    Now I understand that you are a newbie, but still you could read before clicking. No, the plugin page is not down. The Codex is down, but that was the link for the clandar tag.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.