Support » Fixing WordPress » Static page issues.

  • I want to create pages completely independent from wordpress, but have the same theme. Someone suggested that i was referring to a static page and gave me this code, but when i try it i get a bunch of errors

    <?php
    define('WP_USE_THEMES', true);
    require('../blog/wp-blog-header.php');
    ?>
    
    <?php get_header(); ?>
    
    	<div class="main">		
    
    		<div class="content">
    ~Content is here (:
    </div>
    
    			<?php get_sidebar(); ?>
    		<div class="clearer"><span></span></div>
    
    	</div>
    <?php get_footer(); ?>

    I made a sample page called credits.php

    “http://www.mysite.net/pages/site/ credits.php”

    wp-blog-header is:

    http://www.mysite.net/blog/wp-blog-header.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not exactly a WP question – it’s basic HTML.
    You have to “jump” up 2 directories, not one.
    ../../

    It still doesn’t work =/

    Sorry for posting in it the wrong place.

    <?php
    define('WP_USE_THEMES', true);
    require('../../blog/wp-blog-header.php');
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Static page issues.’ is closed to new replies.