• What I would like.. is to make certain pages “compatible” with WordPress?
    Such as.. making these pages work in WP styles etcetera? Would that be possible?

Viewing 7 replies - 1 through 7 (of 7 total)
  • It depends what you mean and how you set it up.
    You can make non-wordpress specific pages that call you wp-content.css for the style. Just call the appropriate divisions in the php file.
    If you want, for example an about page that has all of your wordpress specific things like archives, catagories, recent posts on it you can do that as long as the file is in the wordpress directory. Just copy and past the portions of the code from index.php to about.php.
    Does that help?

    I discuss this in some detail in this thread.

    One way to do it would be to copy your index.php file to about.php, then just edit inside of <div id="content"> to have your content instead of WordPress content.
    You can take this a step further and put the common header and footer elements in a separate file and “include” it. That’s what I do in my templates.

    Thread Starter Jenny

    (@jenny)

    Mm. When i include what i have in my header.php and footer.php in http://cytheria.org/blog
    in to a test file.. (i tested out http://cytheria.org/blog/content_test.php)
    It goes all wacky.. in all the styles except for the default one :/

    All my pages are only 3 lines of code:
    For the resume page on my site for example I created resume.html with the resume data
    resume.php is just:
    <?php include('wp-includes/header.php') ?>
    <?php include('wp-includes/resume.html') ?>
    <?php include('wp-includes/footer.php') ?>

    You can do it this with any page. Previously my resume matched everything else but the CSS is broken momentarily

    Here’s what I do, and my code is crude but it works and seems efficient (to me):
    <?php if ($section) {
    if ('photos' == $section) {
    ?><meta http-equiv="refresh" content="5; url=http://technicallyincorrect.org/coppermine-1.3.1" /><?php
    }
    }
    ?>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_settings('home'); ?>/ti-layout-wp.css" />
    <link rel="stylesheet" type="text/css" href="ti-layout.css" />
    <?php if ('contact' == $section) { ?>
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_settings('home'); ?>/ti-layout-c.css" />
    <?php } ?>
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('home'); ?>/print.css" />
    <?php if ($sp) {
    if ("1" == $sp || "yes" == $sp) {
    ?><link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_settings('home'); ?>/print.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_settings('home'); ?>/ti-print.css" /><?php
    }
    }
    ?>

    and…
    if ($section) {
    if ('home' == $section) {
    require './tech-includes/home.php';
    } if ('blog' == $section) {
    require './tech-includes/blog.php';
    } if ('photos' == $section) {
    ?>
    <p style="text-align: center;">The new photo book is now online. You will be redirected to it in 5 seconds. If not click here. The old photo album is also available.
    <?php
    } if ('contact' == $section) {
    require './tech-includes/contact.php';
    } if ('donate' == $section) {
    require './tech-includes/donate.php';
    } if ('resume' == $section) {
    echo '[resume placeholder]';
    } if ('about' == $section) {
    echo '<p align="center"> .-= under construction =-. ';
    require './tech-includes/about.php';
    } if ('loremipsum' == $section) {
    require './tech-includes/loremipsum.php';
    } if ('archives' == $section) {
    wp_get_archives('type=monthly&limit=5');
    }
    } else {
    include './tech-includes/blog.php';
    }

    Not really useable in it’s current form by anyone but me. But it works great.

    Thread Starter Jenny

    (@jenny)

    Mm, I sorted this problem out. So if someone could lock this topic?
    Thankyou for all your help 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Making pages in WordPress?’ is closed to new replies.