Thread Starter
DOS
(@davittoshannon)
This is a page template used on most of my pages, I guess I need to incorportate allot of this into your single-player.php. Any ideas?
<?php /*
Template Name: Inner Page
*/ ?>
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Hosting Square
* @since Hosting Square 1.0
*/
get_header(); ?>
<div id="main">
<div id="mainleft">
<?php
if(is_front_page()) {
include_once (TEMPLATEPATH . '/slider.php');
}
?>
<div id="content" class="box">
<?php
include_once (TEMPLATEPATH . '/title.php');
?>
<?php if ( function_exists('yoast_breadcrumb') && !is_front_page() ) {
yoast_breadcrumb('<div id="breadcrumbs">','</div>');
} ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content( __( 'Continue Reading', 'templatesquare' ) ); ?>
<?php comments_template(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'templatesquare' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'templatesquare' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php endwhile; ?>
</div><!-- end #content -->
<div class="clear"></div><!-- clear float -->
<div class="clear"></div><!-- clear float -->
</div><!-- end #mainleft -->
<div id="mainright">
<?php get_sidebar('page');?>
</div><!-- end #mainright -->
<div class="clear"></div><!-- clear float -->
</div><!-- end #main -->
<?php get_footer(); ?>
Hi DOS,
Carrick on Shannon is grand. Believe I drove through there on N-4 one day on my way to Enniscrone or Sligo on a golf outing.
Your ‘player gallery’ or taxonmy page (link above) looks great. That’s usually the hard part so well done.
I you look at your code above, you have a while( have_posts() ) loop and the single-player template has essentially the same loop (which calls single-player-content to do all the player specific work). I think if you replace the guts of your loop above with the guts of the single-player loop, you’ll be really close. Then it will be a matter of css styling. (You’ll want to call the result single-player so the WordPress template hierarchy finds the right template.
Let me know how it works out.
Slainte,
-Mark
Thread Starter
DOS
(@davittoshannon)
Hi Mark,
Carrick is a grand spot to be sure, lively spot at the weekends I can tell you!
I fiddled around with my page template and included the single-player loop and that seems to have done the job. Bit more to do on the taxonmy page and I’m sure I’ll hit a few more issue but for now I’m happy out.
http://www.carrickrugbyclub.ie/1/teams/senior-mens/
Thanks for your help
Slan
Davitt
Davitt,
Super. The site looks like you are getting there. (I’ll look you up and collect a pint of the black stuff next time I’m in town.)
-Mark