Title: Executing Shortcodes
Last modified: May 23, 2021

---

# Executing Shortcodes

 *  Resolved [kikamin](https://wordpress.org/support/users/kikamin/)
 * (@kikamin)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/executing-shortcodes/)
 * Hello,
 * I am enjoying the free version. My question is for the pro version which I am
   considering buying for multiple sites.
 * I have the need on all sites to execute shortcode through the clicking of buttons.
   This is not about using shortcode to display/use a maxbutton. Instead this is
   creating a maxbutton that when clicked, it executes a shortcode. For example,[
   gtranslate] shortcode will change the language of the page, and I need it to 
   be available by clicking a maxbutton.
 * Thank you

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * (@basszje)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/executing-shortcodes/#post-14477329)
 * Hi,
 * Shortcodes don’t work like that sadly. They are generated on the server and can’t
   be influenced by clicking.
 * You can link to the same page, but with different page parameters, or you’ll 
   need to find a way to do this via Javascript.
 * There are probably also plugins out there which will accept certain (link) triggers
   to show different parts of the page. Maybe something like that can be a solution.

Viewing 1 replies (of 1 total)

The topic ‘Executing Shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/maxbuttons/assets/icon-128x128.png?rev=1378636)
 * [MaxButtons - Create buttons](https://wordpress.org/plugins/maxbuttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxbuttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxbuttons/)
 * [Active Topics](https://wordpress.org/support/plugin/maxbuttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxbuttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxbuttons/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Bas Schuiling](https://wordpress.org/support/users/basszje/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/executing-shortcodes/#post-14477329)
 * Status: resolved