Support » Fixing WordPress » Search results in "PAGES" and "post" ?

  • Resolved Amado.Miami


    Have been searching the forums and finding things from 6 years ago, 5 years ago, and recently one year ago.

    Which is the most to date version to have “pages” returned in search results in wordpress.

    Most current thing I found was 1 year ago:

    Does this still hold? seems dated.
    I tried “Search everything” and still no “pages” returned in results.
    Any advise greatly appreciated.
    Seem surprised to still be having this conversation even after almost 6 years of it going on.

    Respectfully yours,

Viewing 9 replies - 1 through 9 (of 9 total)
  • What are you trying to do?

    have “pages” returned in my search results from wordpress not just post

    Here try it live:
    Try to search for “Contact” right there its a page, an option in the menu bar, page titled “Contact” yet the actual contact page in not returned:

    solutions or suggestions greatly appreciated 🙂

    which theme are you using ? Can you place the code from search.php

     * The template for displaying Search Results pages.
     * @package WordPress
     */ ?>
    <?php get_header(); ?>
    <!--Start Page Heading -->
        <div class="page-heading-container">
      <div class="container_24">
        <div class="grid_24">
        <div class="page-heading">
        <h1 class="page-title"><?php printf(__('Search Results for: %s', 'golden_eagle'), '' . get_search_query() . ''); ?></h1>
         <div class="clear"></div>
    <!--End Page Heading -->
    <!--Start Page Content -->
    <div class="page-content-container">
      <div class="container_24">
        <div class="grid_24">
        <div class="page-content">
        <div class="grid_sub_16 sub_alpha">
        <div class="content-bar">
                <?php if (have_posts()) : ?>
                    <!--Start Post-->
                    <?php get_template_part('loop', 'search'); ?>
                    <!--End Post-->
                <?php else : ?>
                    <article id="post-0" class="post no-results not-found">
                        <header class="entry-header">
                            <h1 class="entry-title">
                                <?php _e('Nothing Found', 'golden_eagle'); ?>
                        <!-- .entry-header -->
                        <div class="entry-content">
                                <?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'golden_eagle'); ?>
                            <?php get_search_form(); ?>
                        <!-- .entry-content -->
                <?php endif; ?>
                <div class="clear"></div>
                <nav id="nav-single"> <span class="nav-previous">
                        <?php next_posts_link(__('← Older posts', 'golden_eagle')); ?>
                    </span> <span class="nav-next">
                        <?php previous_posts_link(__('Newer posts →', 'golden_eagle')); ?>
                    </span> </nav>
        <div class="grid_sub_8 sub_omega">
        <!--Start Sidebar-->
            <?php get_sidebar(); ?>
            <!--End Sidebar-->
         <div class="clear"></div>
    	<?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    R u using Golden Eagle theme or Golden Eagle Lite theme ?

    Sorry,If you are using Golden Eagle theme you may try support from theme vendors …

    ok thank you will do exactly that right now 🙂

    Suggesting from developer was Google custom search plugin from

    Yes the result from customized google search do meet the objectives,
    the way the results are returned look no where as nice as the ones returned right from within the theme.

    This one worked much better for me: Relevanssi (search plugin)

    Awe yes, try it now.
    Here try it live:
    search for “tuition” – straight to tuition and fees.
    search for “contact” – straight to contact page

    Finally 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Search results in "PAGES" and "post" ?’ is closed to new replies.