WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Plug-ins on .php (3 posts)

  1. Unknownb
    Member
    Posted 6 years ago #

    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!

  2. Unknownb
    Member
    Posted 6 years ago #

    In the titel it says in .html but i mean .php...Sorry!

  3. moshu
    Member
    Posted 6 years ago #

    [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');
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic