• The search box on one of my websites returns the correct search results without a clickable title. Here’s the link: wfda.org.uk. I am using Twenty Thirteen theme, with a child theme, and the search.php looks like this. Please can anyone help?

    get_header(); ?>

    <div id=”primary” class=”content-area”>
    <div id=”content” class=”site-content” role=”main”>

    <?php if ( have_posts() ) : ?>

    <header class=”page-header”>
    <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘twentythirteen’ ), get_search_query() ); ?></h1>

    </header>

    <?php /* The loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, get_post_format() ); ?>
    <?php endwhile; ?>

    <?php twentythirteen_paging_nav(); ?>

    <?php else : ?>
    <?php get_template_part( ‘content’, ‘none’ ); ?>
    <?php endif; ?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check your content.php in current template folder, there should be a script like this

    <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>

    If there isn’t just put this code in the loop whenever you want.

    Thread Starter jewalker

    (@jewalker)

    Thanks, it’s working now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search results not clickable’ is closed to new replies.