0

Basically I would like to link to the edit post interface in Wordpress with the string to display being the post title. Cannot get it to work have tried any syntax that I could come up with, but I am also only 2 days into php.

Here is what I came up with. It creates a link but does not display the post title.

<a href=<?php edit_post_link('<?php echo get_the_title($ID);?>'); ?> </a>

Edit post link , Get title link

4

1 回答 1

0

edit_post_link不应用作 href 属性。尝试以下操作:

<?php edit_post_link( get_the_title( get_the_ID() ) ); ?>
于 2013-07-04T12:31:41.683 回答