• I have some non-wp tables and pages that I want to integrate into WordPress. I am trying to do this without creating any additional templates or embedding PHP code or tags in a page record, but I am not sure how to do this in the “right” way. I’m hoping there is some method I can hook into so that this all takes place in my plugin, or there’s an alternative that is simple to setup/install for the end user.

    The pages being generated are similar to the post listing and post detail, but different in that the data being retrieved is outside the wp model, and the layout would be slightly different. So I imagine creating new templates would be best. My problem with templates however is that:

    1.) The user would be required to install the plugin and the template as far as I know.
    2.) Each theme would need to be altered to support my plugin/templates

    If it’s possible to install sub-templates with plugins, then these two items are non-issues.

    I’m open for ideas. I could be misunderstand how WP works, so maybe I’m missing something obvious.

Viewing 1 replies (of 1 total)
  • As of 3.0, it’s possible to use the template_include filter for this. Do a check in your hooked function to see if you think your template should be used, and if so, return the appropriate path to your template; otherwise, return the argument you were passed by WordPress.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic Pages w/ Non-WP Data’ is closed to new replies.