• Is there a way to create physical pages from within WordPress?

    For example, I want to be able to add a new page which shows up on my server with a .php or .html extensions – something that is actually, physically created (any extension will do, really).

Viewing 7 replies - 1 through 7 (of 7 total)
  • How do you want it to show up?
    Do you want to link to a static page in your menu? or, do you have other ideas for static pages?

    Thread Starter loulantos

    (@loulantos)

    Either way would be good. Ideally if my WordPress installation was based at somewhere like…

    http://www.mysite.com/wordpress/

    Then I’d want the physical page in question to be somewhere like this…

    http://www.mysite.com/wordpress/mypage.php (or whichever file extension works)

    Just something that actually exists on my server, but which is created by WordPress.

    i do this all the time..but the *hard* way:
    Save a sample page from your blog to your hard drive, strip out all the php, you now have an html template for static pages.

    It seems the key to your question lies squarely on this phrase:

    … created by WordPress.

    Pages “created by WordPress” follow a structure similar to your examples but generally with a “/” versus a file extension.

    @sleepw suggested a way to have static pages appear like they were made from your current theme if that is what you have in mind; or, perhaps you are thinking something along the lines of page-templates?

    http://codex.wordpress.org/Pages

    You can do this under the ‘pages’ option in Dashboard
    or
    if you want to manually do it and still keep the same style as your website (which is what i think you’re asking) you can do this:
    (may be difficult if you aren’t familiar with code based web editing)
    -go to your site in firefox (a page with less on it is easiest)
    -go to view>page source
    -Copy the code
    -Paste it in your text editor (I use Smultron on Mac)
    -Find the main content section in the code and delete in between the div tags ex:
    <div>delete here</div>
    (be sure to make a backup first)
    -Add your new content in between the div tags and save.
    -Upload to your server
    -Link to the page

    There probably is a way to do it that is easier…but I’m self taught so I’m sure its not orthodox. Anyway it works for me and I use it all the time for new content.

    if it exists on the server, then it can’t be created by WordPress…excepting the fact that the database resides on the server.
    So option 1 is you use WordPress pages…generated on demand.
    Option 2: static html.
    Only option 2 is physically on the server as a file. For example you can copy a file but you can’t copy a WordPress page in that manner.

    Thread Starter loulantos

    (@loulantos)

    So the main solution seems to be to save the code, manipulate it, and then re-upload it.

    The only problem I might have with this is that I’m currently using a plugin that is crucial to the page. Will its function carry over to a static page that has been copied and pasted from a WordPress page?

    This is what I’m trying to create a physical version of:

    http://nhsolutions.co.uk/oldwordpress-archwaysurgery/registration/

    It uses the Contact Form plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Physical Pages, How?’ is closed to new replies.