Support » Plugin: Frontier Post » Provide “Edit Post Link” on each post

  • Resolved Anggriyawan Nugraha

    (@anggriyawan)


    Hi, i just need a little help. I want to add “Edit Post Link” on each post. I use general code from WordPress Function Reference and put it on conten-single.php:

    <?php edit_post_link( $link, $before, $after, $id, $class ); ?>

    The above code generates a URL like this:

    http://www.site.com/wp-admin/post.php?post=post_id&action=edit

    The code works fine but users who do not have access to wp admin will be redirected to the home page instead of editing posts page.

    Edit Post URL from your plugin is:

    http://www.site.com/my-posts/?task=edit&postid=post_id

    How can I get Edit Post URL from your plugin and put it on each post? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Provide “Edit Post Link” on each post’ is closed to new replies.