• Hello, i am new to WordPress.
    It seems like Great stuff, however I do have one problem.
    I have a Poll script that I would like to use in some posts. The script for this is <?php idiopoll(); ?> and It won’t work if i try to post it.
    I have used search and found three different methods, none work and the most recommended one ( https://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/ ) just brings up an error page when I try and save the post reading .
    ‘Warning: Cannot modify header information – headers already sent by (output started at /home/sites/site216/web/wp-content/plugins/runphp.php:45) in /home/sites/site216/web/wp-admin/post.php on line 340’
    Does anyone have any recommendations?
    Thanks,
    James.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check the runphp.php file, and ensure that you do not have any spaces before the leading <?php or any spaces after the ending ?>
    Any spaces there will get sent as output to the browser, preventing WordPress from sending its own headers.

    Hi,
    thx for this software !!
    There’s just one little thing, I cannot figure it out how to make posts with lots of whitespaces. Let’s say, I want to post some source code. How can this be done ?
    Norbert

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posting PHP’ is closed to new replies.