• Resolved adeel h

    (@adeel-h)


    Hi guys,

    I am new to wordpress. I had a bootstrap theme that i converted into WP theme.
    Now i want to add an edit button/link just like in the twenty thirteen/fourteen theme that if i click on it and it goes to the page that i want to edit. I’ve searched for it but i cant find any tut or something about it. If someone has a good tut can you put a link under here so i can look at it?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Matratzentester.com

    (@matratzentestercom)

    Hi adeel h,

    you can add this code to your WP theme (e.g. content.php) :

    <?php
    edit_post_link( ‘Edit’, ‘<p>’, ‘</p>’ );
    ?>

    Regards

    Thread Starter adeel h

    (@adeel-h)

    Hi Matratzentester.com,

    Thanks for the reply. It works but it links to the POSTS page in admin panel and not to the PAGES. Is there any way i can do that or is it just possible for the POSTS?

    Regards

    Matratzentester.com

    (@matratzentestercom)

    Did you also include it in e.g. content-page.php?

    You need to include it in page template also.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit Button’ is closed to new replies.