Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maximilian Ruthe

    (@maximilian-ruthe)

    Hi Pardalis,
    I recommend placing the edit button in a template file, in the loop, using
    <?php echo do_shortcode('[mage_edit id='.$post->ID.']'); ?>

    Also, the edit button will only display if the current user is able to edit the post in question.

    Plugin Author Maximilian Ruthe

    (@maximilian-ruthe)

    I apologize for the confusion above. The ID parameter in the [mage_edit] shortcode, is intended for the ID of the page that contains the Mage Form used to edit/submit the post type (and NOT the current post->ID in the loop). The php snippet, corrected, would look like:
    <?php echo do_shortcode('[mage_edit id={ID of Page with Form}]'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode visible to user when editing’ is closed to new replies.