WordPress.org

Ready to get started?Download WordPress

Forums

Posting PHP (3 posts)

  1. jbillouin
    Member
    Posted 9 years ago #

    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 ( http://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.

  2. Mark Jaquith
    WordPress Lead Dev
    Posted 9 years ago #

    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.

  3. Norbert
    Member
    Posted 9 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.