Static Template Page
-
Instead of showing my static page.
Wordpress show me the latest posts.this is my : “pagedecontenu.php” code source
<?php /* Template Name: Page-de-contenu */ ?> <?php get_header(); if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="content-page"> <h1><?php the_title();?></h1> <?php the_content(); ?> </div> <? endwhile; endif; get_footer(); ?>
The template is executed.
But, I think that there isn’t the static page id in the query. So wordpress show posts… I try to put a $post->ID on the query but that is’t work.Thanks, i’m blocked …
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Static Template Page’ is closed to new replies.