$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugins - Shortcode not working - quotes seems strange|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugins - Shortcode not working - quotes seems strange

matteradmin8PV0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

You 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.

Post a comment

comment list (0)

  1. No comments so far