Forums

Physical Pages, How? (8 posts)

  1. loulantos
    Member
    Posted 2 years ago #

    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).

  2. Edward Caissie
    Member
    Posted 2 years ago #

    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?

  3. loulantos
    Member
    Posted 2 years ago #

    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.

  4. SleepW
    Member
    Posted 2 years ago #

    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.

  5. Edward Caissie
    Member
    Posted 2 years ago #

    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

  6. twop
    Member
    Posted 2 years ago #

    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.

  7. SleepW
    Member
    Posted 2 years ago #

    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.

  8. loulantos
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic