• Resolved AllegraGF

    (@allegragf)


    I am just getting deeper into the world of wordpress and I can’t find the answer to this. I want a page to perform certain function. So I was going to create a plugin. Say I want this page to load pictures from a user defined gallery from a media folder. I am understanding how to create a plugin, what I a not getting is how a user would get the plugin to interact with a page, not a post. In my minded they would create a new page and it would then be the gallery page using the plugin.

Viewing 1 replies (of 1 total)
  • Thread Starter AllegraGF

    (@allegragf)

    So I have learned that shortcodes is a way of doing this.

    function my_fuction( $atts ){
    //show this instead of [myshortcode];
    }
    add_shortcode( ‘myshortcode’, ‘my_fuction’ );

Viewing 1 replies (of 1 total)
  • The topic ‘New Page or Plugin’ is closed to new replies.