Forums

[resolved] Output content without creating a page or post (3 posts)

  1. drumatic
    Member
    Posted 1 year ago #

    Hi there

    I'm making a simple plugin where users can make entrys to a database.

    My problem is to display forms and stuff generated by my plugin without creating a page or a post, i don't like to create page templates or shortcodes, links are display in the plugin's own widget, so when you install it you only have to place the widget in the sidebar.

    at the moment, i pass a GET variable to my plugin i.e. action=overview and then add content with add_action('the_content', 'plugin_overview')

    but now i get the posts on the frontpage too, how can i prevent that or is there an more elegant way to solve this ?

    thanks for help

  2. drumatic
    Member
    Posted 1 year ago #

    i now dynamicly create pages on plugin activation and put a shortcode into content, people can then place pages whereever they like to.

  3. HaneD
    Member
    Posted 11 months ago #

    Can you please tell me how you did this. I would really like to do something like this for archive pages

Topic Closed

This topic has been closed to new replies.

About this Topic