Forums

Using Pages outside of blog? (2 posts)

  1. Dauntless
    Member
    Posted 5 years ago #

    Hi,

    First, the link to my wp-blog (under construction):

    http://www.dauntless.be/V2/wp/

    Now, click 'A*(Astar)' in the top menu. This takes you to another page on my site. In the left sidebar, there is a list of Pages. If you click on one of them, you can see the page, but you are redirected to the 'blog' section of the site. This is expected behaviour:

    index.php)

    <?php
    get_header();
    ?>
    
    <?php
    		$id = addslashes($_GET["page"]);
    		switch($id)
    		{
    			case 1:
    				require_once("blog.php");
    				break;
    			case 2:
    				require_once("contact.php");
    				break;
    			case 3:
    				require_once("astar.php");
    				break;
    
    			default:
    				require_once("blog.php");
    				break;
    
    		}
    		?>
    
    <?php get_footer(); ?>

    blog.php is the normal blog-post flow.

    Because it goes to blog.php by default, it displays the wrong sidebar (and other things).

    My question:
    How can I add the "page=3" to the links ('s) of the Pages? So that when you click a Page, you can still see the left sidebar with the Page list, and the Page you clicked on the right side.

    If I'm not clear, please do tell me!

  2. Dauntless
    Member
    Posted 5 years ago #

    Or is there maybe a better way to build up my site? (I wanted to edit my post but I can't find an Edit button ??)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.