WordPress.org

Support

Support » How-To and Troubleshooting » Change name in get_archives

Change name in get_archives

  • Hi! I want my user can select the last news from 1 week, so I put in the sidebar

    <?php get_archives(‘weekly’, ‘1’, ‘html’, ”, ”, TRUE); ?>

    but I want the link put “this week” not the dates like “25/June/2007–1/July/2007”. Can I change the name of this link?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d need to change wp-includes/template-functions-general.php to do that (assuming that you are using version 2.0.10).

    Also please note that in WordPress version 2.2.1, get_archives is deprecated and replaced by wp_get_archives.

    Thanks, I think it would be complicated because I don´t know well php so I have decided to put a select like this:

    <select name=”archivemenu” onChange=”document.location.href=this.options[this.selectedIndex].value;”>
    <option value=””>This week</option>
    <?php get_archives(‘daily’,’7′,’option’,”,”,’FALSE’); ?>
    </select>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change name in get_archives’ is closed to new replies.
Skip to toolbar