WordPress.org

Ready to get started?Download WordPress

Forums

Custom Plugin Not Working (1 post)

  1. katmac22
    Member
    Posted 3 years ago #

    I have created a custom plugin called "HomeRotateText" and I was successfuly able to activate it. I then opened an existing page called "test" and added the following code:

    <?php
    HomeRotateText();
    ?>

    When the test page displays it shows up the following text:
    HomeRotateText();
    ?>

    What have I done wrong? The contents of my file HomeRotateText is:

    <?php

    /*
    Plugin Name: HomeRotateText
    Plugin URI: http://www.bserv.com
    Description: Displays Random Text on Home Page.
    Version: 1.0
    Author: BNS
    License: GPL1
    */

    function HomeRotateText()
    {
    echo "ROTATING TEXT";
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.