WordPress.org

Ready to get started?Download WordPress

Forums

Create custom page (2 posts)

  1. sagitta1793
    Member
    Posted 1 year ago #

    Hello,

    I'm currently working at a plugin.
    There is a widget, which displays different information and under some conditions it displays a link to a special page which combines all the informations.
    The widget is working, but I don't know how to create a custom page that I can show in the frontend.

    Basically, I want to use the site structure from my theme and just change the "content". It would by nice, if the page could be accessd by links like "mysite.de/?overview".

    Greetings
    sagitta1793

  2. toocoolone
    Member
    Posted 1 year ago #

    You could use a shortcode to do this. I've done something similar myself. The URL might have to be a little longer than what you want, but make a page with nothing but the shortcode in it. Then create a function to handle the shortcode that returns whatever data you wish. You can read in the Codex about shortcodes.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.