Support » Plugins » Hacks » Append trailing .html on posts (on the fly)

Viewing 6 replies - 1 through 6 (of 6 total)
  • venkatachari

    (@venkatachari)

    [code moderated]

    parse

    (@parse)

    venkatachari: Hm, yes? That was the plugin I was talking about in my post. I want to add .html on posts without changing the permalinks under ‘Settings’, not pages.

    / Anders

    Anders,

    I’m trying to accomplish the same thing, add .html to a post, but only one post.

    Did you find a resolution to your problem?

    thanks,

    Duncan

    >> add_filter(‘user_trailingslashit’, ‘no_page_slash’,66,2);
    What does 66 and 2 stand for here? Are these post Id’s? Can I add more here to exclude them from the .html extension?

    Hi Merl,

    no, the numbers have nothing to do with post ids. They’re to do with priority, and accepted arguments;

    http://codex.wordpress.org/Function_Reference/add_filter

    @venkat Hi, thanks for that, but I am still stuck with an issue. My blog page is “sitename.com/blog” and it keeps adding the extension and makes it “sitename.com/blog.htm/”. Can you help me out with this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Append trailing .html on posts (on the fly)’ is closed to new replies.