admin管理员组文章数量:1130349
I have been through other posts and tried a lot. I have two wordpress sites on the same server and A runs fine with the plugin "PHP code snippets" but B just shows the shortcode [wbcr_php_snippet id=”1656″]. On B i can use other shortcodes but have tried other plugins for php insertion and get to the same issue.
When looking at the shortcode at this page: / it looks like the quotes are different and the same in the html source. They are only edited in text and i have tried many things to ensure it is not just a typo.
I have tried to change the theme from Anissa to Amadeus and standard WP as site A uses and compared function.php but site B still comes up with same issue, that i do not have on site A.
Can something change the quotes? and can it be the issue? This is what the source looks like: [wbcr_php_snippet id=”1656″] (the quotes seems different)
No errors are seen and i have reinstalled plugin.
UPDATE: i have tried to remove the fancy quotes in the themes functions.php bit it makes no difference, som seems not to be the quotes.
I have been through other posts and tried a lot. I have two wordpress sites on the same server and A runs fine with the plugin "PHP code snippets" but B just shows the shortcode [wbcr_php_snippet id=”1656″]. On B i can use other shortcodes but have tried other plugins for php insertion and get to the same issue.
When looking at the shortcode at this page: https://mesthverdag.dk/boeger/ it looks like the quotes are different and the same in the html source. They are only edited in text and i have tried many things to ensure it is not just a typo.
I have tried to change the theme from Anissa to Amadeus and standard WP as site A uses and compared function.php but site B still comes up with same issue, that i do not have on site A.
Can something change the quotes? and can it be the issue? This is what the source looks like: [wbcr_php_snippet id=”1656″] (the quotes seems different)
No errors are seen and i have reinstalled plugin.
UPDATE: i have tried to remove the fancy quotes in the themes functions.php bit it makes no difference, som seems not to be the quotes.
Share Improve this question edited Nov 10, 2018 at 13:49 HeFyNi asked Nov 10, 2018 at 8:26 HeFyNiHeFyNi 12 bronze badges1 Answer
Reset to default 1You need to use ", and not ”. They're different characters. You can end up with the latter if you've copied them from a forum or blog post where the writer's CMS converts " to 'fancy quotes'. Just delete the quote marks and type them again yourself, or if that doesn't work, just copy them from my answer here.
I have been through other posts and tried a lot. I have two wordpress sites on the same server and A runs fine with the plugin "PHP code snippets" but B just shows the shortcode [wbcr_php_snippet id=”1656″]. On B i can use other shortcodes but have tried other plugins for php insertion and get to the same issue.
When looking at the shortcode at this page: / it looks like the quotes are different and the same in the html source. They are only edited in text and i have tried many things to ensure it is not just a typo.
I have tried to change the theme from Anissa to Amadeus and standard WP as site A uses and compared function.php but site B still comes up with same issue, that i do not have on site A.
Can something change the quotes? and can it be the issue? This is what the source looks like: [wbcr_php_snippet id=”1656″] (the quotes seems different)
No errors are seen and i have reinstalled plugin.
UPDATE: i have tried to remove the fancy quotes in the themes functions.php bit it makes no difference, som seems not to be the quotes.
I have been through other posts and tried a lot. I have two wordpress sites on the same server and A runs fine with the plugin "PHP code snippets" but B just shows the shortcode [wbcr_php_snippet id=”1656″]. On B i can use other shortcodes but have tried other plugins for php insertion and get to the same issue.
When looking at the shortcode at this page: https://mesthverdag.dk/boeger/ it looks like the quotes are different and the same in the html source. They are only edited in text and i have tried many things to ensure it is not just a typo.
I have tried to change the theme from Anissa to Amadeus and standard WP as site A uses and compared function.php but site B still comes up with same issue, that i do not have on site A.
Can something change the quotes? and can it be the issue? This is what the source looks like: [wbcr_php_snippet id=”1656″] (the quotes seems different)
No errors are seen and i have reinstalled plugin.
UPDATE: i have tried to remove the fancy quotes in the themes functions.php bit it makes no difference, som seems not to be the quotes.
Share Improve this question edited Nov 10, 2018 at 13:49 HeFyNi asked Nov 10, 2018 at 8:26 HeFyNiHeFyNi 12 bronze badges1 Answer
Reset to default 1You need to use ", and not ”. They're different characters. You can end up with the latter if you've copied them from a forum or blog post where the writer's CMS converts " to 'fancy quotes'. Just delete the quote marks and type them again yourself, or if that doesn't work, just copy them from my answer here.
本文标签: pluginsShortcode not workingquotes seems strange
版权声明:本文标题:plugins - Shortcode not working - quotes seems strange 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749193515a2330505.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论