sqlgetvar does not return result – the return !
-
Hello Eli,
Thank you for your smart plugin, it is great.
Unfortunately, I got the same problem you answer 7 month ago. I have read your answer and tried to impplement it :
I think I found out why you are having this problem. WordPress automatically changes your content and replaces your single quotes with something they call smart quotes 🙁
You will need to remove the filter for the wptexturize function before this shortcode will work with quotes in it. You’ll need to add this line of code to a PHP file where it can run in the init action hook:
remove_filter (‘the_content’, ‘wptexturize’);If you can’t find a better place to put this code you can add it to my plugin inside the ELISQLREPORTS_init function on line 899 of elisqlreports/trunk/index.php
The problem is clearly that : if I use a query with quote or double quote, sqlgetvar do not answer anything.
But unfortunately, your suggestion to add remove_filter in index.php of your pluging, do not change anything…Do you have any other solution ? Or do you intend to implement a solution in your pluging, by changing back any character modification made by WP in sqlgetvar?
Last thing : I use WP 4.6.1 with theme twenty fourteen.Thanks for your answer.
The topic ‘sqlgetvar does not return result – the return !’ is closed to new replies.