Still a problem using get_permalink in a post.
-
Hello,
I am following the instructions in the codex for including a permalink in a page that links to another page. The documentation indicates that one needs to add
“echo get_permalink(10);” in between php tags as your href property for the link. However when I do this and hit “Save and Continue Editing” I get a non-working link that looks like this:http://www.mysite.net/wp-admin/%3C?php%20echo%20get_permalink%2810%29;%20?%3E
It is as though the code is being parsed incorrectly before being stored in the database.
The documentation for using permalinks is here, but there seems to be a bug.
http://codex.ww.wp.xz.cn/Template_Tags/get_permalinkThanks for any help.
Best Regards,
Josh
The topic ‘Still a problem using get_permalink in a post.’ is closed to new replies.