Title: button function the easy way
Last modified: August 19, 2016

---

# button function the easy way

 *  [brad8985](https://wordpress.org/support/users/brad8985/)
 * (@brad8985)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/button-function-the-easy-way/)
 * Hi,
 * I want to use the following function in my TinyMCE editor… is this possible?
 *     ```
       <?php function buttonlink($url, $text){ ?>
       <a class="button" href='<?php echo $url; ?>'>
                           <?php echo $text; ?>
                           <div class="TL"></div>
                           <div class="TR"></div>
                           <div class="BL"></div>
                           <div class="BR"></div>
                       </a>
       <?php }
       ```
   
 * The function works fine but I want to be able to enter a link and click a button
   or something so that it generates my button for the user without having to touch
   code.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [brad8985](https://wordpress.org/support/users/brad8985/)
 * (@brad8985)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/button-function-the-easy-way/#post-1706494)
 *  Thread Starter [brad8985](https://wordpress.org/support/users/brad8985/)
 * (@brad8985)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/button-function-the-easy-way/#post-1706495)
 * Bump… anybody?
 *  Thread Starter [brad8985](https://wordpress.org/support/users/brad8985/)
 * (@brad8985)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/button-function-the-easy-way/#post-1706667)
 * There must be some wordperess ninja waiting to give me the answer…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘button function the easy way’ is closed to new replies.

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [brad8985](https://wordpress.org/support/users/brad8985/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/button-function-the-easy-way/#post-1706667)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
