[wp-trac] Re: [WordPress Trac] #7275: get_permalink argument must
be passed in quotes
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 10 02:19:24 GMT 2008
#7275: get_permalink argument must be passed in quotes
-----------------------+----------------------------------------------------
Reporter: sillybean | Owner: anonymous
Type: defect | Status: closed
Priority: low | Milestone:
Component: Template | Version:
Severity: minor | Resolution: worksforme
Keywords: |
-----------------------+----------------------------------------------------
Changes (by DD32):
* status: new => closed
* resolution: => worksforme
* component: General => Template
Comment:
I see no logical reason why either of your codes should not work.
It works fine for me:
{{{
$subpageid = 315;
$subpage = get_post($subpageid);
echo get_permalink($subpage->post_parent) , '<br />';
echo get_permalink($subpage->ID);
http://dd32/wordpress/mainpage/
http://dd32/wordpress/mainpage/subpage/
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7275#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list