WordPress.org

Ready to get started?Download WordPress

Forums

edit_post_link feature request (4 posts)

  1. swimy
    Member
    Posted 5 years ago #

    i would really like to see the ability to pass a postID paramater into the 'edit_post_link();' function, and to use it outside the loop.

    basically it would allow for better CMS functionality.

    thanks WordPress team!!

  2. Ben Huson
    Member
    Posted 4 years ago #

    I agree, that would be useful.

  3. Ben Huson
    Member
    Posted 4 years ago #

    I've just checked the core code and it would seem you can pass a post ID as a fourth parameter:

    <?php edit_post_link('Edit', '<p>', '</p>', 139); ?>

    I think the Codex needs updating...

  4. Ben Huson
    Member
    Posted 4 years ago #

    This was added in version 2.8 by the looks of it:

    http://core.trac.wordpress.org/changeset/11425

Topic Closed

This topic has been closed to new replies.

About this Topic