WordPress.org

Ready to get started?Download WordPress

Forums

Calendar previous and next (12 posts)

  1. singleton
    Member
    Posted 9 years ago #

    The calendar has previous and next links at the bottom

    Is there any way to resturcture the calendar such that the top line looks like:

    << June 2005 >>

  2. Kafkaesqui

    Posted 9 years ago #

    Of course there's a way, but not without editing the source (or copying and changing it within a custom function/plugin). If you're up for it, the calendar function (get_calendar) is found in:

    wp-includes/template-functions-general.php

  3. singleton
    Member
    Posted 9 years ago #

    Which is the better choice: editing the source, or a custom function/plugin

    If I go with editing the source, is there a way of doing it within WP (like the Theme Editor)?

    My WP is installed on a Linux server, but I do my work in Windows. I tried opening the file and my editor asked if I wanted to convert it to DOS format. If I did that, and did the edit, would it work, or would I need to convert it back to unix?

    If I did it with a custom plugin, is there pattern code for such a plugin?

    And is it true that PHP is an interpretive language, i.e. I dont have to compile anything after modifying the code?

  4. Joshua Sigar
    Member
    Posted 9 years ago #

    Just make it a plugin. Copy the original function to your plugin file, rename it, modify it, and call it from your theme.

    What editor you use? Just use a simple text editor, e.g. notepad.

    PHP is interpreted; no need to compile; edit and upload back to server.

  5. thisclassicallife
    Member
    Posted 9 years ago #

    Along these lines, my calendar *doesn't* have previous/next links. How can I add these?

    Currently, there is a calendar for June, and a list of the previous linked months below it.

  6. Kafkaesqui

    Posted 9 years ago #

    singleton: As alphaloide alludes to, a plugin is better. Then you won't need to track the mods when upgrading. Another option is to create a my-hacks.php (the percursor to plugins) and add your modified function to that. Just make sure "Use legacy my-hacks.php file support" is enabled under Options > Miscellaneous. More info on my-hacks.php:

    http://wiki.wordpress.org/my-hacks.php

    thisclassicallife: Do you have posts *before* June? Calendar nav links don't appear until there's at least one previous month with posts.

  7. singleton
    Member
    Posted 9 years ago #

    I am very new to WP (I guess that is obvious), but AFAIK I have not installed any plugins. I just noticed that my wp-content folder seems to have three plugins: hello.php, markdown.php, and textile1.php.

    Is it normal for me to have them, and do I just add any other plugins to that folder?

    Somewhere I saw something that indicated that one could, and possibly should, separate WP from their Blog. Is this a good idea (and where are the instructions on doing that), and would this mean that I could have several blogs on my server, with just one copy of WP, and would the plugins be installed once, for all blogs, or would each blog have its own plugin folder?

  8. moshu
    Member
    Posted 9 years ago #

    1. Those plugins come with the standard package of WP.
    2. Yes, just drop the new plugins in the same directory (or as instructed in their readme).
    3. Yes, you can separate blog and WP installation. (I can't find now the instructions, but it's simple.)
    4. You can have several blogs on your server. No, it doesn't mean just one copy of WP - it means as many copies installed as installations. No, you always have to upgrade them separately, and add plugins separately to their plugins folder.

  9. Joshua Sigar
    Member
    Posted 9 years ago #

    Is it normal for me to have them, and do I just add any other plugins to that folder?
    Yes and yes.

    Somewhere I saw something that indicated that one could, and possibly should, separate WP from their Blog
    I'm not clear as to what you mean by that. It could be the following: http://wordpress.org/docs/installation/different-address/

    would this mean that I could have several blogs on my server, with just one copy of WP, and would the plugins be installed once, for all blogs, or would each blog have its own plugin folder?
    The thing you say above is not normally done by the most of us. More info: http://codex.wordpress.org/Installing_Multiple_Blogs

  10. singleton
    Member
    Posted 9 years ago #

    What I was remembering is the link moshu gave.

    What is the advantage of doing that separation? Does it make it easier to just copy in a new version of WP and retain any mods one made in terms of plugins and theme changes?

  11. moshu
    Member
    Posted 9 years ago #

    It doesn't make life easier. On the contrary - but that's my personal opinion.

  12. thisclassicallife
    Member
    Posted 9 years ago #

    Thanks. I figured out that was the issue. I did a test post to a previous month and it showed up. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic