Jump to content

[SOLVED] Wordpress and PHP code plugin


papaface

Recommended Posts

Hello,

I have a blog. In my blog I have examples of code. For some reason when I use the editor and insert a

'

it is printed in wordpress as a

Which obviously caused parsing issues when people copy and past the text for code such as:

echo ‘<a href="’.$links[$randnum].‘"><img style=" border:none" src="’.$images[$randnum].‘" /></a>’;

should be:

echo '<a href="'.$links[$randnum].'"><img style=" border:none" src="'.$images[$randnum].'" /></a>';

 

Any ideas as to how I can fix this?

Link to comment
https://forums.phpfreaks.com/topic/84507-solved-wordpress-and-php-code-plugin/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.