ThemeShaper Forums » Thematic

[closed]

Search results omit text from page templates

(7 posts)
  • Started 12 years ago by Pictrix
  • Latest reply from Pictrix
  • This topic is resolved
  1. Pictrix
    Member

    The search results fail to include any text from a page template generated through a php file. However, it includes text entered directly in the Wordpress Edit Page window for a page that uses that same page template.

    Even though the "view source" shows the text from these two sources within the #post and the .entry-content tags, the search engine disregards the ones from the php file.

    Is there a way to overcome this?

    Thanks!

    <div id="post-327" class="post-327 page type-page hentry"><h1 class="entry-title">TEST</h1>

    <div class="entry-content">

    <p>gallina ciega</p>

    <p>RATON LOCO</p>

    <p>perro gordo</p>

    <span class="edit-link">Edit</span> <p>dragon</p>

    </div><!-- .entry-content -->

    Posted 12 years ago #
  2. That's a bit of a difficult one.
    I've had a hard time finding the actual code that does the searching.
    If you can find it, I might be able to help you.

    Posted 12 years ago #
  3. Pictrix
    Member

    The search loop code (below) is located in thematic/library/extensions/content-extensions.php. I'm not versed in PHP, so I don't really know what to change. I've tried different plugins, but I get the same results.


    // The Search Loop
    if (function_exists('childtheme_override_search_loop')) {
    function thematic_search_loop() {
    childtheme_override_search_loop();
    }
    } else {
    function thematic_search_loop() {
    while ( have_posts() ) : the_post();

    thematic_abovepost(); ?>

    <div id="post-<?php the_ID();
    echo '" ';
    if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
    post_class();
    echo '>';
    } else {
    echo 'class="';
    thematic_post_class();
    echo '">';
    }
    thematic_postheader(); ?>
    <div class="entry-content">
    <?php thematic_content(); ?>

    </div><!-- .entry-content -->
    <?php thematic_postfooter(); ?>
    </div><!-- #post -->

    <?php

    thematic_belowpost();

    endwhile;
    }
    } // end search_loop

    add_action('thematic_searchloop', 'thematic_search_loop');

    Posted 12 years ago #
  4. Yeh, I found that bit of code, which outputs the results of the search, but the code I was looking for is the actual code that does the searching. I'm not sure how it works. I may have to try importing the framework into an IDE and see if I can click through methods. Can be difficult with frameworks that have various design pattens. Would be sweet if Ian could document the basic design pattens within the framework in the wiki area. I'm battling through it ATM. Will add documentation when I get a better idea of how it works =]

    Posted 12 years ago #
  5. Pictrix
    Member

    Thanks so much for your efforts. This is way beyond my level!

    Posted 12 years ago #
  6. No worries. You might be better of using a google search box in that case. That's what I use anyway.

    Posted 12 years ago #
  7. Pictrix
    Member

    I'll try that, thanks for your suggestion!

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.