Try this
<div class="my_edit_button">
<?php if ( $post->post_author == $current_user->ID ) {
echo do_shortcode('[something]');
}?>
</div>
Try this
<div class="my_edit_button">
<?php if ( $post->post_author == $current_user->ID ) {
echo do_shortcode('[something]');
}?>
</div>