[wp-trac] Re: [WordPress Trac] #6492: Guids No Longer Have
Permalink Format
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 28 09:00:07 GMT 2009
#6492: Guids No Longer Have Permalink Format
--------------------------+-------------------------------------------------
Reporter: brianwhite | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: General | Version: 2.5
Severity: trivial | Resolution:
Keywords: dev-feedback |
--------------------------+-------------------------------------------------
Comment (by DD32):
Replying to [comment:23 fix22]:
> How can I get the permalink from the database now? If I retrieve this
field in wp2.5+ it only comes back with a ugly permalink (/?=post_nr) (not
a proper rewritten one as in /%postname%/)
You've got 2 choices:
* Manually create the URL based on the details in the DB
* Include wp-load.php in your script, let it load all of WP, then call
get_permalink($id)
Your other option, is to filter the data and set the GUID to the permalink
always (Or to add a meta-field of the current permalink even)
--
Ticket URL: <http://trac.wordpress.org/ticket/6492#comment:24>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list