Viewing 4 replies - 1 through 4 (of 4 total)
  • Start with this tutorial and practice making a simpler plugin to start.

    http://markjaquith.wordpress.com/2006/03/04/wp-tutorial-your-first-wp-plugin/

    Thread Starter Zardon

    (@zardon)

    ok, I’ll take a look into it. I mean my friend literally put php coding into a few pages so the pages look like plugins themselves except that they aren’t actual plugins. They are pages I wish were made into plugins. Cuz I wanted my friend to make some modules for me and he did what I wanted him to to except he put the code on the pages and now I gotta figure out how to turn them into actual plugins so they show up on the main page.

    Something like this directly into a php file and stick it into “mu-plugins”

    <?php
    function my_plugin() { ?>
    My wicked cool stuff my friend coded for me.
    <?php } ?>

    Then in your index.php of the theme or any other spots in you theme files

    <?php if( function_exists( 'my_plugin' ) {
           my_plugin();
    }
    ?>

    If whatever you have is in a page all by itself you could simply include it in a featured section of your index(after the header) without a plugin

    <?php get_header(); ?>
    <?php
    include (TEMPLATEPATH . "/featured_section.php");
    ?>

    where featured_section.php contains your fancy stuff

    `<div id=”mypanel_1″ class=”my_panels”>
    My wicked cool stuff my friend coded for me.
    </div>’

    I have a featured posts carousel that I include from theme to theme this way.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Easy way to create a plugin?’ is closed to new replies.