PlugINs and Editor Setting for WordPress Projects

Currently I’m using 2 PlugINs and I’ve disabled WYSIWYG Editor for my WordPress Projects

  • Insert_PHP [ used to run PHP code ]
  • Raw HTML [ need to be version 1.5 – 1.4 converts HTML during saving the Code
  • Disable Visual Editing first User -> Profil -> Disable WYSIWYG Editor

Note :  You CAN’T run [insert_php]…[/insert_php] Block inside a [raw] .. [/raw] Block
Raw Html need to be at version 1.5 !


Insert_PHP Plugin: 
Descriptiuon: 
   Run PHP code inserted into WordPress posts and pages.
  
- In the sample below we use Insert_PHP Plugin to call get_stylesheet_directory_uri() 
- get_stylesheet_directory is used by Child Themes [ here we reference an Image location]

Sample:
<td class="firstImageAbu" rowspan="5"><img src=[insert_php]echo get_stylesheet_directory_uri()."/images/htmlImages/abu1.jpg 
   alt='Sponsoren FCW' width=215 />";[/insert_php]</td>  
    

Raw HTML PlugIN
Descripton:
    Lets you enter any HTML/JS/CSS in your posts without WP changing it, as well as disable 
    automatic formatting on a per-post basis. Usage: Wrap your code in [raw]...[/raw] tags. 
    To avoid problems, only edit posts that contain raw code in HTML mode. Upgrade to Pro 
    to be able to use Visual editor on the same posts without it messing up the code.

Note: Used that PlugIN for a ControlPanel. Without that code the Buttons get strange aligned when 
using <CR> to beautify your Code !

Sample:
[raw]
<div id="AbuControlPanel">
  <input id="infoButton" class="mediumButton" type="submit" value="" />
  <input id="homeButton" class="mediumButton" type="submit" value="" />
  <div id="AbuButtonGroup" class="button-group">
    <input id="stopButton" class="mediumButton" type="submit" value="" />
    <input id="playButton" class="mediumButton" type="submit" value="" />
    <input id="prevButton" class="mediumButton" type="submit" value="" />
    <input id="nextButton" class="mediumButton" type="submit" value="" />
  </div>
</div>
[/raw]

Leave a Reply

Your email address will not be published. Required fields are marked *