WordPress.org

Ready to get started?Download WordPress

Forums

WP Search
Search using excerpt or custom meta (1 post)

  1. TJ
    Member
    Posted 2 years ago #

    Kenny,

    I have tried to utilize the comments on pages Model.php lines 69-75 as well as Phplucene.php line 525 to get custom meta data to no avail.

    Here is my new code on Model.php:

    $table = self::getTableName('postmeta');

    /* Process posts in batches of 20 from the db */
    $sql = "SELECT meta_value
    FROM $table
    WHERE post_id = '$post_id'
    AND meta_key = 'keywords'";

    Here is my new code in Phplucene.php:
    $comment_blob .= "{$comment->meta_value} ";

    Can you tell me what I am doing wrong?
    Thanks!

    http://wordpress.org/extend/plugins/wpsearch/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags