WordPress.org

Support

Support » Requests and Feedback » why are guid’s stored as absolute paths?

why are guid’s stored as absolute paths?

  • fritzthecat
    Member

    @fritzthecat

    Maybe I just don’t know how to use WP properly, but I run a local version on my machine and a live one on the server, and it is annoying how WP stores all the guids in the wp_posts table as absolute: http://dev.server/this/that

    There should be an option to select the link format behaviour – absolute [http://i.only.have.one.server/this/that], or root relative [/this/that].

    In fact I don’t understand why guids are stored as absolute at all since the blog url is stored in the option table – can’t WP just work URLS by collating site url and root relative guid?

    In the end I had to write a plugin to strip all the host names from the guids, and have to remember to run it everytime I upgrade WP. Not ideal.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘why are guid’s stored as absolute paths?’ is closed to new replies.