Grow your CSS skills. Land your dream job.

WP plugin help – shortcode issue

  • # February 17, 2010 at 12:52 pm

    I’m working on a WP plugin and I’ve run into a stumbling block (a few actually).

    The problem I’m trying to solve right now is getting it to appear only on a specific page.

    I’ve added this the the functions.php:

    Code:
    < ?php

    add_shortcode('my-plugin', 'my_plugin');

    ?>

    and then in the page where it should appear, I added:

    Code:
    [my-plugin]

    Instead of showing up where I want it to, it just shows up at the top of every page. I’ve done this sort of thing before, but I can’t seem to get it to work this time. What am I missing?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".