If you see the shortcode with text it means the plugin is not loaded . Are you sure the plugin is active?
Als please check if you are using a caching plugin.
Does WP give you any errors?
Yes the plugin is active.
I am using WP Super Cache, but clearing the cache and deactivating that plugin doesn’t fix the problem.
I deactivated all plugins and switched to TwentyFifteen theme. Still the same problem — I see the shortcode but no button.
Here is a test page showing the shortcode:
http://www.pousadamata.com.br/test/
As I wrote earlier: I also note that the quotes in the shortcode seem to be “smart quotes”. (This is more obvious in the TwentyFifteen theme.) If true, I’m guessing this would affect the functioning of the shortcode, but I don’t know what’s causing it. Entering the quotes manually in WP page editor (text mode) or copy and paste from TextEdit (.txt) still creates what look like smart quotes.
Thanks. I tested it on a my test site and indeed the button doesn’t show up when using these quotes. .
The smart quotes are not being set by Maxbuttons, so some plugin or function is doing some conversion from normal quotes to those.
Also on my test site the button doesn’t show up at all when using these quotes, but it doesn’t show the shortcode. This means that the [ ] characters also might be converted to something only to be transformed back when displaying ( and thus not loading the shortcode functions ).
You can try to add the shortcode without any quotes at all like : [maxbutton id=1] . This should work.
If you still see the shortcode you’ll have to check everything what’s causing this conversion (something must be doing it) . What you can try is to check another plugin that supports shortcodes and see if the same happens.
MaxButtons uses the standard WordPress way of reading the shortcodes and the attributes of it, so if this is a problem other plugins should show it as well. The result of a failing shortcode normally (like the button doesn’t exists) is no output at all.
Also the database table to check is wp_posts not the maxbuttons table since the shortcodes are being stored in the post content.
Thanks for your detailed response.
The smart quotes are not being set by Maxbuttons, so some plugin or function is doing some conversion from normal quotes to those.
As I wrote earlier: I deactivated all plugins and switched to TwentyFifteen theme. Still the same problem — I see the shortcode but no button.
You can try to add the shortcode without any quotes at all like : [maxbutton id=1] . This should work.
It doesn’t.
What you can try is to check another plugin that supports shortcodes and see if the same happens.
Contact form 7 works fine on the same site: contact form
Also the database table to check is wp_posts not the maxbuttons table since the shortcodes are being stored in the post content.
I looked at wp_posts and it looks fine. I added the shortcode directly in the table and still get the same result: displays the shortcode but not the button.
See http://www.pousadamata.com.br/test-3/
All I can think of is that something got corrupted in the site migration, and the only sollution is to uninstall MaxButtons, delete the data associated with it, and start from scratch. sigh.
I can’t imagine anything being corrupted as a reason of not loading shortcodes. I’m puzzled though why this is happening. Could you make a temporary admin account for me and email the credentials to support [at] maxfoundry.com ? I’ll take a peek and see if I can explain what’s happening here.
OK I took a look at your installation and after some digging I found out ( I was rather surprised ) that your frontend is running a different PHP version then your backend.
The backend loads PHP 5.4x , but on the front it’s PHP 5.2 on which MaxButtons doesn’t run unfortunately. I’m not sure if you made some setting but otherwise you should ask your hoster why this is happening.
I checked removing this protection but the plugin crashes, meaning that’s it’s really PHP 5.2 running on your front. You can check this as well by installing Query monitor and checking ‘environment’.
Wow, thanks for the info. I never would have figured this out. I will ask the webhost how/why this is happening. I didn’t change any setting related to PHP.
I’m curious to what they say. I was as surprised as you since I never encountered two different PHP versions not only on the same server but on the same site as well…