WordPress.org

Ready to get started?Download WordPress

Forums

EzStatic & dynamic addresses (7 posts)

  1. ImTa2d
    Member
    Posted 9 years ago #

    I have a page that i can't seem to get to work in EzStatic - it keeps falling out of the template. :P Is there a way to call http://little-girl-lost.org/flinx/category.php?id=15 from within EzStatic? I tried http://little-girl-lost.org/index.php?page=flinx/category.php?id=15 with no luck (i am using page instead of static). I also tried http://little-girl-lost.org/index.php?page=flinx/category?id=15 same results. If this is not possible to call through EzStatic, does anyone have any ideas for how to keep this page within my themes?

  2. Lorelle
    Member
    Posted 9 years ago #

    The correct link should be index.php?page_id=15 for Pages and index.php?cat=15 for categories. See:

    http://codex.wordpress.org/Linking_Posts_Pages_and_Categories

    If you are using something different with permalinks combined with id....not sure how to help.

  3. ImTa2d
    Member
    Posted 9 years ago #

    flinx/category.php is actually an external php file. I haven't been able to get the hang of creating pages within WP & then permalinking them. I've done one page successfully, then added 1 more, but when i looked at the first page again it combined both pages - so i gave up. What can i do with my flinx/category.php to get it to behave within the theme?

  4. Lorelle
    Member
    Posted 9 years ago #

    Let me understand. This is a php file that does or does not include WordPress PHP "stuff" like includes, Loop, and such?

    If it doesn't, then all you do is create a link like any other link.

    <a href="/folder/external.php" title="blah">name</a>

    If it includes WordPress stuff like the header and footer, and does not have any Loop material, then you link it like above.

    If it is a Page, then you use the information for linking in the article I posted above.

    This article on Pages takes you step by step through the process of using Pages, including different templates and other information. That might help.

    If you want to include PHP inside of a post or Page, then you can use one of the PHP allowing plugins like RunPHP or wpexec.

    I hope that helps.

  5. ImTa2d
    Member
    Posted 9 years ago #

    it doesn't contain any WP loops or anything, but i still want it to be included in my theme. there are many page links that are created from info in my flinx db. try this page: http://little-girl-lost.org/index.php?page=fanlistings & check the links to the different categories - they are NOT hard coded & i think this is where my problem is coming from. I don't know how to get the resulting category pages to stay within the theme. (fanlistings.php is also an external page that is themed through ezstatic)
    Sorry if i'm not explaining this very well. :(

  6. Lorelle
    Member
    Posted 9 years ago #

    Well, your site is....a challenge for naviation and getting information but very cool looking. For looks, very cool. Usage - cumbersome. I did run a validation on one page and found this:

    hsrc="http://little-girl-lost.org/wp-content/

    See anything wrong with it? There is no hsrc in HTML or XHMTL or XML for all I know. It should be href or src. That could be a little of your trouble.

    You have clearly reached a point where you have to make some serious decisions. 1) Continue with handcoding (or whatever) your PHP stuff and stick with it. 2) Blow out the other stuff and go totally WordPress.

    You are running two index.php references and WordPress is going to choke trying to figure out if you want index.php?page=blah or the WordPress set of index.php?page_id=42. In WordPress, there is no ?page= but there is an index.php so this may be one of your big problems.

    The confusion of mixing the different systems together on your site is beyond my capability to help. And in some ways, beyond the forum. If you want to have WordPress as an "accessory" to your site, then read: Integrating WordPress With Your Site.

  7. ImTa2d
    Member
    Posted 9 years ago #

    Lorelle, thanks for all your help. This last post really put things in perspective for me. I always suspected that i took the more complicated way to get what i want. :P Not sure where the hsrc tag came from as i would never hand code that - oh well. You're right about it being decision time. I've always hand coded everything, but i liked the modularity of WP so i guess i was hoping to have the best of both worlds. I like the idea of WP being an accessory, as you put it, but it doesn't look like i can use this method with multiple themes (maybe i'm wrong though).

Topic Closed

This topic has been closed to new replies.

About this Topic