Forums

edit_post_link feature request (4 posts)

  1. swimy
    Member
    Posted 4 months 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. husobj
    Member
    Posted 3 months ago #

    I agree, that would be useful.

  3. husobj
    Member
    Posted 3 months 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. husobj
    Member
    Posted 3 months ago #

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

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

Reply

You must log in to post.

About this Topic