• Resolved canarystudio

    (@canarystudio)


    Love this plugin – thanks.

    I have an issue where I can only get the edit link to show up and work for posts that are not published. I thought the plugin wasn’t working at all (no edit link showing anywhere) until I changed my loop to include post_status of draft and pending (which is part of the requirements for my site – authors can edit their own posts, irrespective of post_status).

    This is the code for the edit link:

    <?php
          echo do_action('gform_update_post/edit_link', array(
            'post_id' => $post->ID,
            'url'     => home_url('/edit-poem/'),
            'text'    => 'Edit Poem',
          ) );
        ?>

    You can see the three post types here, the top item is published – there is no mark-up rendered for the edit button: https://dl.dropboxusercontent.com/spa/iw14fxpov1ic45z/u7eoih3_.png

    To recap: this works perfectly for drafts and pending posts, but the edit link (and edit form) are not showing at all for published posts.

    Is this a known issue? Am I doing something wrong?

    https://ww.wp.xz.cn/plugins/gravity-forms-post-updates/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘No edit link for published posts’ is closed to new replies.