• 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

    https://www.mysite.net/pages/site/ credits.php”

    wp-blog-header is:

    https://www.mysite.net/blog/wp-blog-header.php&#8221;

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

    Thread Starter collinswk

    (@collinswk)

    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.