• Resolved WillardWorks

    (@willardworks)


    Using Weaver 2.2.4 –
    Found an issue with the Site Map template when displaying the Month header. There was an error coming up, so I took a look at the Site Map Template and found the following issue:

    Code shown starts around line 40, in the second section, you will notice that the _ before the (‘Posts… code is only a single _ while in each of the other sections there are two __ changing this in the code and saving it will correct the error seen on the site.

    echo(“<div id=\”wvr-sitemap\”>\n”);
    echo(“<h3>” . __(‘Pages’, WEAVER_TRANS) . “</h3><ul class=’xoxo sitemap-pages’>\n”);
    wp_list_pages(array(‘title_li’ => false));
    echo(“\n”);

    echo(“<h3>” ._(‘Posts’, WEAVER_TRANS) . “</h3><ul class=’xoxo sitemap-pages-month’>\n”);
    wp_get_archives(array(‘type’ => ‘monthly’, ‘show_post_count’ => true));
    echo(“\n”);

    if (!weaver_getopt(‘ttw_post_hide_cats’)) {
    echo(“<h3>” . __(‘Categories’, WEAVER_TRANS) . “</h3><ul class=’xoxo sitemap-categories’>\n”);
    wp_list_categories(array(‘show_count’ => true, ‘use_desc_for_title’ => true, ‘title_li’ => false));
    echo(“\n”);

  • The topic ‘Weaver site map error’ is closed to new replies.