• Hi All,

    I am hoping this is a really simple question. I am using the get_calendar tag and while it is displaying fine the previous month link isn’t returning the next calendar month, instead its displaying that months entries on a single page.

    The code i am using is:

    <?php if (function_exists(‘get_calendar’)) { ?>

    <?php get_calendar(); ?>

    <?php } else { ?>
    <h2 class=”cal”><?php _e(‘Archives’); ?></h2>

    <?php wp_get_archives(‘type=monthly’); ?>

    <?php } ?>

    Any thought?

    Many thanks… Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try replacing all of that with simply:
    ………………
    <?php get_calendar(); ?>
    ……………….

    Or if you have your calendar on your sidebar housed in a list, use the following:

    ………………….
    <li id="calendar"><?php _e('Calendar'); ?>
    <?php get_calendar(); ?>
    </li>

    ………………….

    Thread Starter b3ndy

    (@b3ndy)

    Hi Lizard,

    Many thanks for the reply, I replaced the code (overkill prehaps) but its still going to a page with all the entries. Would it be something to do with my archive.php and archives.php pages?

    Ben

    I suppose that is possible but I’m afraid that I really don’t know the answer, Ben.

    Maybe there is something that will help in the codex?

    https://codex.www.ads-software.com/Troubleshooting

    or

    https://codex.www.ads-software.com/Customizing_Your_Sidebar

    All the best!!

    (When you do find a solution, it might not be a bad idea to come in here and post it for others who may find themselves with the same problem)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calendar Question’ is closed to new replies.