[wp-hackers] GUID problem

Austin Matzko austin at ilfilosofo.com
Thu Sep 2 01:51:50 UTC 2010


On Wed, Sep 1, 2010 at 8:45 PM, Andrew Nacin <wp at andrewnacin.com> wrote:
> Since 2.5, we've used the non-pretty URL for the GUID, i.e.
> http://example.com/?p=1. (This is the same as a default WP shortlink in
> 3.0.) Some who look at the database schema see a link and feel they can use
> $post->post_guid instead of get_permalink(). It looks like a URL, but it's
> not..

Adding to the confusion, uploaded media's URLs get saved to the guid
field, so for those post types it *is* a URL and is used as such.


More information about the wp-hackers mailing list