Support » Plugins » Hacks » Add post title to edit entry link

  • Resolved Packer Greg

    (@packer-greg)


    I would like to add the title of a post to the “edit entry” link at the bottom of the post (i.e. Edit post for Chocolate Chip Cookie Recipe ยป )

    Among other things, I have tried

    <?php edit_post_link('Edit post for <?php the_title(); ?>', '<p>', '</p>'); ?>

    but the title never displays. I’ve also tried get_the_title and single_post_title to no avail.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add post title to edit entry link’ is closed to new replies.