WordPress.org

Ready to get started?Download WordPress

Forums

Motor Racing League
[resolved] Hard Coding Widget Into A Page (2 posts)

  1. upto0013
    Member
    Posted 1 year ago #

    Hello,

    Love, love, looove the plugin. We hope to use it for a fantasy snowmobile racing league, but I've hit a snag.

    Placing the shortcode on the .php of the page doesn't work, so I'm trying to find what the shortcode pulls from, but my brain explodes when I see php.

    Has anyone else tried doing this with success?

    http://wordpress.org/extend/plugins/motor-racing-league/

  2. ianhaycox
    Member
    Plugin Author

    Posted 1 year ago #

    To use a shortcode in normal post add,

    [motorracingleague entry=x]

    within PHP code you have to do

    <?php
      echo do_shortcode('[motorracingleague entry=x]');
    ?>

    http://codex.wordpress.org/Function_Reference/do_shortcode

    Ian.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.