WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Search results in "PAGES" and "post" ? (10 posts)

  1. Amado.Miami
    Member
    Posted 1 year ago #

    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:
    http://wordpress.org/support/topic/search-only-pages?replies=6

    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,
    Amado
    http://gsl.eng.fiu.edu/Amado/

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    What are you trying to do?

  3. Amado.Miami
    Member
    Posted 1 year ago #

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

  4. Amado.Miami
    Member
    Posted 1 year ago #

    Here try it live: http://www.cec.fiu.edu/
    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: http://www.cec.fiu.edu/contact/

  5. Amado.Miami
    Member
    Posted 1 year ago #

    solutions or suggestions greatly appreciated :)

  6. viky081
    Member
    Posted 1 year ago #

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

  7. Amado.Miami
    Member
    Posted 1 year ago #

    <?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>
        </div>
         <div class="clear"></div>
        </div>
        </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'); ?>
                            </h1>
                        </header>
                        <!-- .entry-header -->
                        <div class="entry-content">
                            <p>
                                <?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'golden_eagle'); ?>
                            </p>
                            <?php get_search_form(); ?>
                        </div>
                        <!-- .entry-content -->
                    </article>
                <?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>
        </div>
        <div class="grid_sub_8 sub_omega">
        <!--Start Sidebar-->
            <?php get_sidebar(); ?>
            <!--End Sidebar-->
        </div>
        </div>
        </div>
         <div class="clear"></div>
        </div>
        </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.]

  8. viky081
    Member
    Posted 1 year ago #

    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 ...

    http://www.inkthemes.com/supportforum/forum/golden-eagle

  9. Amado.Miami
    Member
    Posted 1 year ago #

    ok thank you will do exactly that right now :)

  10. Amado.Miami
    Member
    Posted 1 year ago #

    Suggesting from developer was Google custom search plugin from WordPress.org http://wordpress.org/extend/plugins/google-custom-search/.

    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: http://www.cec.fiu.edu/
    search for "tuition" - straight to tuition and fees.
    search for "contact" - straight to contact page

    Finally :)

Topic Closed

This topic has been closed to new replies.

About this Topic