• I have to add some HTML code for paypal to certain page. Other users need to also modify pages I have done this to. What is the best way to maintain the integrity of the HTML code to keep it from gettiung scrambled?

Viewing 1 replies (of 1 total)
  • If the added code is always at the end of the text, you could use a filter on the_content() to add it. The filter could be as simple as this (UNTESTED):

    function my_function($content){
       $my_text = "<p>Here is more content.</p>";
       return $content . $my_text;
    }
    add_filter('the_content', 'my_function');

    If it is not always in the same spot, consider using a ‘marker’ and doing a replace of the marker with the HTML.

Viewing 1 replies (of 1 total)
  • The topic ‘how do u handle Visual / HTML mode and scrampled’ is closed to new replies.