[wp-trac] [WordPress Trac] #7275: get_permalink argument must be
passed in quotes
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 10 02:10:21 GMT 2008
#7275: get_permalink argument must be passed in quotes
-----------------------+----------------------------------------------------
Reporter: sillybean | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone:
Component: General | Version:
Severity: minor | Keywords:
-----------------------+----------------------------------------------------
It seems that the following should work:
<?php echo get_permalink($post->post_parent); ?>
It doesn't, however, unless you enclose the argument in quotes:
<?php echo get_permalink("$post->post_parent"); ?>
--
Ticket URL: <http://trac.wordpress.org/ticket/7275>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list