WordPress.org

Ready to get started?Download WordPress

Forums

PAGES with Extension
PAGES with Extension, Static Posts Page (1 post)

  1. shapeyourbits
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.