WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Search Everything] Doesn't search my custom fields

[Plugin: Search Everything] Doesn't search my custom fields

Viewing 15 replies - 1 through 15 (of 21 total)
  • I tried this again, but I could not get it to work.
    Nobody a clue?

    I desperately want to know as well. This is the main reason I downloaded this. Are there any alternatives to this plugin that people recommend? Or a developer can at least enlighten us on this function? Thanks!

    sokratesagogo
    Participant

    @sokratesagogo

    Just tried it and it works for me..

    By default, the “Search every custom field:” value on the “settings > search everything” page is not enabled. Forgive me for asking, but can you confirm that you have enabled this and saved the settings?

    If that still doesn’t work, disable all other plugins and test again.

    Good luck, Sok

    yap, sure good u asking, could safe a lot of trouble. but I have it indeed enabled!
    I’ll try the disabling of all plugins as soon as I can and get back here.
    thx


    I have only custom field templates and nextgen gallery activated
    nothing else.
    I haven’t tried deactivating it, because I have to do that locally, but can anybody deny that these two plugins have a negative effect on the search everything plugin?

    sokratesagogo
    Participant

    @sokratesagogo

    The custom fields template sounds like a suspect – what is the link to the plugin?

    well here it is:

    http://wordpress.org/extend/plugins/custom-field-template/

    but it just predefines some custom fields. The creation of custom fields is just normal (they also appear below each post, as they would without the plugin)…

    sokratesagogo
    Participant

    @sokratesagogo

    Which version of the custom field template plugin are you using? I’ve just tried version 1.9.9 and it works with search everything

    ah I just see there was an update.
    I will load that and retry…

    sokratesagogo
    Participant

    @sokratesagogo

    Fingers-crossed 🙂 I’ve just tried NextGen gallery 1.92 and that isn’t causing any problems either..

    Ohhh it seems to find something. But it doesnt get listed in my search results…
    I just says it found one. I have to check my code on the listing of the results…

    Do you by the way know what I have to look at to list all items?

    sokratesagogo
    Participant

    @sokratesagogo

    Do you have a search.php in your theme?

    Yes I do.
    I made it by myself and I just checked the code:
    I have some specific code if the result is in a specific category (omitted below) but I mainly just say this:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<div class="searchresult">
    
    		<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> 
    
    			<?php the_excerpt(); ?>
    
    	</div>
    
    <?php endwhile;
    wp_reset_query(); ?>

    Should this not be enough to list the results?

    I know there was something found because of this:

    <?php
    	if ($total_results == 1){
    		echo 'wurde 1 Suchresultat';
    	}else{
    		echo 'wurden ' . $total_results . ' Suchresultate ';
    	}?>
    	für <span>"<?php echo the_search_query(); ?>"</span> gefunden.</h1><br />

    Its German and it says just that either one search result was found or X results were found.

    If I search for some text just appearing in one custom field, I get the message that 1 result was found, but nothing is displayed below…

    well of course I have this in front:

    <?php
    	global $wp_query;
    	$total_results = $wp_query->found_posts;
    ?>
    sokratesagogo
    Participant

    @sokratesagogo

    Backup your search.php and try the default code on this Codex page:

    http://codex.wordpress.org/Creating_a_Search_Page

    with the ‘default code’ you mean that little fragment here:

    <?php
    global $query_string;
    
    $query_args = explode("&", $query_string);
    $search_query = array();
    
    foreach($query_args as $key => $string) {
    	$query_split = explode("=", $string);
    	$search_query[$query_split[0]] = urldecode($query_split[1]);
    } // foreach
    
    $search = new WP_Query($search_query);
    ?>

    this won’t show me anything in html right?
    where exactly are my results in?
    in the $search right?
    thats a new query then…

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Plugin: Search Everything] Doesn't search my custom fields’ is closed to new replies.