Support » Fixing WordPress » WordPress Plug-ins on .php

  • Hello,

    I made my own site..but i want to add a flv player and ajax-comment-posting to my site…i instalt wordpress and the 2 plugins…my site is in .php but when i try to add the codes in me index.php it keeps me showing fatal errors!

    Call to undefined function get_option() this one is from the flv player

    Call to undefined function add_action() and this is the error im getting from Ajax-comment-posting.

    I hope someone will help me, Greetz!

Viewing 2 replies - 1 through 2 (of 2 total)
  • In the titel it says in .html but i mean .php…Sorry!

    [title corrected]

    When you are talking about your index.php – is that a WP file or something else?
    If something else, you need to add this at the top of that file (before anything else!)

    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Plug-ins on .php’ is closed to new replies.