Opened 15 years ago
Closed 15 years ago
#7275 closed defect (bug) (worksforme)
get_permalink argument must be passed in quotes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | minor | Version: | |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
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"); ?>
Change History (1)
Note: See
TracTickets for help on using
tickets.
I see no logical reason why either of your codes should not work.
It works fine for me: