1) Had no succes with custom page, that is with the making of the template itself. Made a new .php file in my themes directory with all the normal code and left out the header stuff. But when I tried to make a page and assign the template, there were none to select.
2) Wrapping around didnt work, but very likely that I didn’t wrap it right.
When I wrapped it like this:
<?php
$pages_to_omit_title = array( '200', '116', '2', '11' ); // enter Page IDs, comma-separated
global $page;
$display_title = ( array_key_exists( $page->ID, $pages_to_omit_title ) ? false : true );
if ( $display_title ) { ?>
<h2><?php the_title(); ?></h2>
<h2 class="entrytitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php }
?>
The post title appeared a second time
When I wrapped it like this:
<?php
$pages_to_omit_title = array( '200', '116', '2', '11' ); // enter Page IDs, comma-separated
global $page;
$display_title = ( array_key_exists( $page->ID, $pages_to_omit_title ) ? false : true );
<h2 class="entrytitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
if ( $display_title ) { ?>
<h2><?php the_title(); ?></h2>
<?php }
?>
I got an error: Parse error: syntax error, unexpected '<' in /usr/www/users/nicefl/wp-content/themes/karappo-style/index.php on line 18
I want the dates gone on all the pages (except posts again) as well now. Sorry for the hastle :/