Support » Plugin: Standout Color Boxes and Buttons » How to add short codes to php file

  • Stein7



    I am glad to find this great plugin.

    I want to add “Standout Color Boxes and Buttons” short codes to a specific php file.

    For example, I wanted to add “[color-button color=”purple” href=”http://www….com/”]Return to List[/color-button]” into a php file of a WordPress plugin.

    I found the following information in your FAQ section:

    You may also call the shortcode in your PHP code. Example:
    echo do_shortcode(‘[color-button color=”purple”
    href=””]Follow this link[/color-button]’);blcok2

    I added a similar code into the php file, but it does not work..

    I’m new to PHP and I don’t know how to make it worked.

    Do I need to add something into the same php file or other php file before it works?

    Thanks for your help.

  • The topic ‘How to add short codes to php file’ is closed to new replies.