Forums

Using pages not stored on mySQL (5 posts)

  1. inorganik
    Member
    Posted 3 years ago #

    I've read through quite a bit of the codex and can't find an answer to this question. It's a PHP question.

    I know when you create pages in WP, when you click that page link on your sidebar, it shows up where the blog post is. Thing is, I can't find the php code in the index.php of either the classic or default themes that makes it do this.

    The reason I'm looking is because I want to create my own pages from scratch (not via WP), and not stored on my database, (rather, in my site root) and have them show up where a post would. Problem is, I don't where/what the include code is, and how to link them. Can anyone help?

    Thanks a bunch!

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    Pages and Posts are stored in the database, not in files. You can't make page and post content that doesn't live in the database.

  3. inorganik
    Member
    Posted 3 years ago #

    I understand that. All I'm trying to do is be able to include files on my page that aren't on the database, and for the content to show up where a post would. I'm sure there's a way.

  4. ronchicago
    Member
    Posted 3 years ago #

    a little more detail might help. an example. you wish to build non-database cookie recipe files that you can "insert" in a database post or "point-to" with a link? something like that? these examples are basic " a href= " code. the point-to example has the option of replacing a page or opening a new window so you don't leave your blog. i've never tried to replace in a situation like this but rather open a new window. so i don't know if replace will achieve your goal.

  5. ronchicago
    Member
    Posted 3 years ago #

    found this on the forum which may shed light on another approach...

    http://wordpress.org/support/topic/225155

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags