Content appears below footer
-
Hello.
I am trying to learn php, css and wordpress. I have created one wordpress blog earlier with a more CM style to it than a blog. Thanks to the WPESP theme I managed to create a frontpage based on one category, and a blog that contains every other category.
I am now working on a new one, where I want a static frontpage and two different blogs (divided by category) which you can access thourgh the header menu.
I have set a particular template to each page through my index.php file:
<?php get_header(); ?> <?php if (is_page(3)): include(TEMPLATEPATH . '/forsiden.php'); endif ?> <?php if(is_category('presse')) : include(TEMPLATEPATH . '/presse_side.php'); elseif( in_category( 'presse')) : include(TEMPLATEPATH . '/presse.php'); endif // About & Contact ?> <?php if (is_page(2)): include(TEMPLATEPATH . '/analyse.php'); endif ?> <?php if (is_page(10)): include(TEMPLATEPATH . '/kontakt.php'); endif ?> <?php if(is_category('fagartikler')) : include(TEMPLATEPATH . '/fag_side.php'); elseif( in_category( 'fagartikler')) : include(TEMPLATEPATH . '/fagartikler.php'); endif // About & Contact ?> <?php get_footer(); ?>
The problem is that every single page (frontpage, analyse and kontakt “it’s norwegian”) is showing correctly under the header, but a second content is appearing under the footer aswell. I can’t find the problem for why the content appears twice, but it seems it is based on two different templates.
The blog category works fine without duplicating the content.
See examples here
https://www.mokie.no/wptestI appreciate any help or experience with this matter.
Best regards
Mokie
- The topic ‘Content appears below footer’ is closed to new replies.