WordPress.org

Ready to get started?Download WordPress

Forums

Static page issues. (3 posts)

  1. collinswk
    Member
    Posted 6 years ago #

    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"

  2. moshu
    Member
    Posted 6 years ago #

    Not exactly a WP question - it's basic HTML.
    You have to "jump" up 2 directories, not one.
    ../../

  3. collinswk
    Member
    Posted 6 years ago #

    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');
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic