• fairmediacouncil

    (@fairmediacouncil)


    Hello,

    I’m using duena as the them for my site test.fairmediacouncil.org.

    My search limits results but I would also like for it to include pages.

    My search.php is:
    `<?php /* Start the Loop */ ?>
    <?php while (have_posts()) : the_post();

    // The following determines what the post format is and shows the correct file accordingly
    $format = get_post_format();
    get_template_part( ‘post-formats/’.$format );
    if($format == ”)
    get_template_part( ‘post-formats/standard’ );
    endwhile; ?>

    <?php else : ?>

    <?php get_template_part( ‘no’, ‘results’ ); ?>

    <?php endif; ?>
    <?php get_template_part(‘post-formats/post-nav’); ?>
    </div><!– #content –>
    </div><!– #primary –>`

    Thank you.

    P.S. The backtickts don’t seem to be working for the code I posted, sorry in advance (I used the code button as well).

  • The topic ‘Include pages in search results’ is closed to new replies.