And the read more link? On my page the read more links to the homepage. I’ve made some tests/Coding yesterday and I’ve used the permalink() function.
<div class="<?php echo $service_class; ?>">
<div class="service-item clearfix">
<a href="<?php the_permalink(); ?>">
<?php
if ( has_post_thumbnail() ) {
echo '<div class="service-icon">'.get_the_post_thumbnail( $post->ID, 'medium' ).'</div>';
}
?>
</a>
<h3 class="service-title">
<a href="<?php the_permalink(); ?>">
<?php echo $page_title; ?>
</a>
</h3>
<article>
<?php the_excerpt(); ?> //above this line permalink(); works fine, below it links to the page domain
</article>
<!-- .service-item -->
<?php if( !empty( $options[ 'post_excerpt_more_text' ] ) ) { ?>
<a href="<?php the_permalink(); ?>" class="more-link">
<?php echo $options[ 'post_excerpt_more_text' ]; ?>
</a>
<?php } ?>
</div>