Hi Piotr
Thanks for your quick reply! I've tried it but the line up in the home page (
http://www.destress-festival.com) still links to the individual page (
http://www.destress-festival.com/speaker/artist13/) instead of the 'overall' page (
http://www.destress-festival.com/category/speakers/). In the 'overall' page the links ar gone, thats good.
This is what I've changed:
in widget.speakers.php (is this the wright way for the link...)
- Code: Select all
if (count($speakers)) {
if(count($speakers) >= 5) {
echo '<div class="gkw-speakers" data-animinterval="'.$anim_interval.'" data-animspeed="'.$anim_speed.'">
<div class="gkw-speaker-big speaker-hide">
<div>
<a href="http://www.destress-festival.com/category/speakers/">
<img src="'.$speakers[2]['img'].'" alt="'.$speakers[2]['title'].'" />
</a>
</div>
<h4>
<a href="http://www.destress-festival.com/category/speakers/" title="'.$speakers[2]['title'].'">'.$speakers[2]['title'].'</a>
</h4>
</div>
<div class="gkw-speakers-small-left">
<div class="gkw-speaker-small speaker-hide">
<div>
<a href="http://www.destress-festival.com/category/speakers/">
<img src="'.$speakers[0]['img'].'" alt="'.$speakers[0]['title'].'" />
</a>
</div>
<h4>
<a href="http://www.destress-festival.com/category/speakers/" title="'.$speakers[0]['title'].'">'.$speakers[0]['title'].'</a>
</h4>
</div>
<div class="gkw-speaker-small speaker-hide">
<div>
<a href="http://www.destress-festival.com/category/speakers/">
<img src="'.$speakers[1]['img'].'" alt="'.$speakers[1]['title'].'" />
</a>
</div>
<h4>
<a href="http://www.destress-festival.com/category/speakers/" title="'.$speakers[1]['title'].'">'.$speakers[1]['title'].'</a>
</h4>
</div>
</div>
<div class="gkw-speakers-small-right">
<div class="gkw-speaker-small speaker-hide">
<div>
<a href="http://www.destress-festival.com/category/speakers/">
<img src="'.$speakers[3]['img'].'" alt="'.$speakers[3]['title'].'" />
</a>
</div>
<h4>
<a href="http://www.destress-festival.com/category/speakers/" title="'.$speakers[3]['title'].'">'.$speakers[3]['title'].'</a>
</h4>
</div>
<div class="gkw-speaker-small speaker-hide">
<div>
<a href="http://www.destress-festival.com/category/speakers/">
<img src="'.$speakers[4]['img'].'" alt="'.$speakers[4]['title'].'" />
</a>
</div>
<h4>
<a href="http://www.destress-festival.com/category/speakers/" title="'.$speakers[4]['title'].'">'.$speakers[4]['title'].'</a>
</h4>
</div>
</div>
</div>
<div class="gkw-rest-speakers">';
for($i = 0; $i < count($speakers); $i++) {
echo '<div class="gkw-speaker">
<div>
<a href="http://www.destress-festival.com/category/speakers/">
<img src="'.$speakers[$i]['img'].'" alt="'.$speakers[$i]['title'].'" />
</a>
</div>
<h4>
<a href="http://www.destress-festival.com/category/speakers/" title="'.$speakers[$i]['title'].'">'.$speakers[$i]['title'].'</a>
</h4>
</div>';
}
echo '</div>';
}
}
and in content-speaker.php
- Code: Select all
<?php
/**
*
* The template for displaying posts in the Speaker Post Format on index and archive pages
*
**/
global $tpl;
?>
<?php if(is_single()) : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('gk-speaker gk-speaker-single'); ?>>
<header>
<?php if(has_post_thumbnail()) : ?>
<figure class="featured-image">
<?php the_post_thumbnail(); ?>
</figure>
<?php endif; ?>
<?php if(get_the_title() != '') : ?>
<h1>
<a href="" title="<?php printf( esc_attr__( 'Permalink to %s', GKTPLNAME ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php endif; ?>
<?php gk_post_fields(); ?>
</header>
<?php if(is_search() || is_archive() || is_tag()) : ?>
<section class="summary">
<?php the_excerpt(); ?>
</section>
<?php else : ?>
<section class="content">
<?php the_content(); ?>
<?php gk_post_links(); ?>
</section>
<?php endif; ?>
<?php
// variable for the social API HTML output
$social_api_output = gk_social_api(get_the_title(), get_the_ID());
?>
<?php if(
$social_api_output != '' ||
(
get_the_author_meta( 'description' ) &&
get_option($tpl->name . '_template_show_author_info') == 'Y'
)
): ?>
<footer>
<?php echo $social_api_output; ?>
</footer>
<?php endif; ?>
</article>
<?php else : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('gk-speaker'); ?>>
<?php if(has_post_thumbnail()) : ?>
<figure class="featured-image">
<a href="" title="<?php printf( esc_attr__( 'Permalink to %s', GKTPLNAME ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php the_post_thumbnail(); ?>
</a>
</figure>
<?php endif; ?>
<?php if(get_the_title() != '') : ?>
<h2>
<a href="" title="<?php printf( esc_attr__( 'Permalink to %s', GKTPLNAME ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
<?php endif; ?>
</article>
<?php endif; ?>
Allso is it true you only see a couple of speakers on the homepage instead of all the ones that ar on de overall page?