• Resolved AliceWonderFull

    (@alicewonderfull)


    Hi, I don’t do a lot of wordpress development, just one plugin so far.

    Right now I am trying to port a simple calendar to WordPress that will live on its own page – e.g.

    https://example.org/wordpress/calendar/

    Basically I want – if possible (it certainly should be with mod_rewrite) the URI of the calendar to be configurable withing the WP plugin admin interface.

    Adding events needs to be done through WP plugin admin interface.

    It’s the generation of the page from the plugin I can’t figure out, what I keep finding in the docs is references to making custom templates but I don’t want to make a custome template for a page, I want to use whatever template the site uses, and stick my generated calendar inside the div for content with whatever header and footer and aside columns the site already has.

    What part of the WordPress documentation do I need to read?

    not safe for work but not crude demo:

    https://www.domblogger.net/puzzle/cal/

    I just want that content stuffed in as the main content, I’m sure it is stupid simple to do, but I don’t seem to understand WordPress lingo well enough to find how its done.

    Blog Admin activates plugin, it creates the table and loads initial data. That I can find how to do.

    Blog admin then goes to plugin admin page. That I can find how to do.

    Blog Admin enters the relative URI where they want the calendar, and it that gets added to the blog menu as a link that when loaded, uses their existing template generating the calendar as the content – that’s where I am stuck. As in I seem unable to find the WordPress documentation that covers that.

    Thank you for suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AliceWonderFull

    (@alicewonderfull)

    Nevermind, it looks like template is what I need to do. I’m not exactly fond of the way WordPress does this, but it looks like what has to be done.

    To do things the way you want (setting your content inside the standard templates) you don’t need to use a template file, and you probably shouldn’t.

    The best way to do this is to use shortcodes. What this will do for you is give you a re-usable “code” that will let users add the calendar to which ever page they require it on, and it will sit inside the content area of their own templates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom page that is a webapp’ is closed to new replies.