Support » Plugin: PAGES with Extension » PAGES with Extension, Static Posts Page

  • shapeyourbits

    (@shapeyourbits)


    To fix an incorrect trailing slash left on the Static Posts Page I amended:

    if ($wp_rewrite->using_permalinks() && $type == ‘page’ ){
    return untrailingslashit($string);
    }

    to

    if ($wp_rewrite->using_permalinks() && ($type == ‘page’ || $string == get_page_uri(get_option( ‘page_for_posts’))+’/’)){
    return untrailingslashit($string);
    }

    http://wordpress.org/extend/plugins/pages-with-extension/

  • The topic ‘PAGES with Extension, Static Posts Page’ is closed to new replies.