WordPress.org

Support

Support » How-To and Troubleshooting » Use image as “Edit post” button

Use image as “Edit post” button

Viewing 3 replies - 1 through 3 (of 3 total)
  • EDIT:
    These forum can’t display my last solution (the manual one). Here again:

    <a href="<?php bloginfo('url'); ?>/wp-admin/page.php?action=edit&post=<?php the_ID(); ?>">
           <img src="<?php bloginfo('stylesheet_directory'); ?>/icons/page_edit.png" title="Edit this page"></a>

    Can’t anybody help me? Please, I really need to get this to work!

    It’s working now with this code:

    function get_ID() {
    	global $wp_query;
    	$thePostID = $wp_query->post->ID;
    	return $thePostID;
    }

    and

    <?php bloginfo('url'); ?>/wp-admin/page.php?action=edit&post=<?php echo get_ID(); ?> as link.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use image as “Edit post” button’ is closed to new replies.
Skip to toolbar