I have defined several page templates on my site http://178.21.128.82/. When I set my pages to use one of these page templates, wordpress seems to stop treating it as a page:
- It is not accepted in the is_page() conditional tag
- The body class "page" is not present (instead its showing "home").
Only when I use the default page template for my pages they are truly treated as a page by wordpress.
Anyone got a clue what´s going on?
Thanks!
Added:
query_posts('meta_key=wpfp_favorites&orderby=meta_value');
if ( have_posts() ) : while ( have_posts() ) : the_post();
$start = get_post_meta($post->ID, '5Start', true);
$stop = get_post_meta($post->ID, '6Slutt', true);
if(is_active($start, $stop)) {
$offer = print_offer($post->ID, $start, $stop);
echo $offer;
}
endwhile;
endif;
query_posts()
. Please add code from template that has this issue.