This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • in reply to: Problem with searching in custom post #5867
    timtim
    Participant

    Hi

    I re-generated the index table, but without results. I also tried without the index table and followed your instructions.
    Any ideas?

    Thanks,

    Tim

    in reply to: Problem with searching in custom post #5816
    timtim
    Participant

    Thanks, I’m still working on that.

    Now I have the another problem. I’ve worked with some random data to test the search engine (manual inserted). But now I have imported the real data (10 000 records) to my database (with WP All Import Pro). But none of the results are showing up. Any idea what the problem could be?

    Thanks!

    Kind regards,

    Tim

    in reply to: Problem with searching in custom post #5424
    timtim
    Participant

    Great! Works perfect now.

    Another little (or not) question: is it possible to show in the results the title and the custom taxonomy “auteur” (author)? I’ve already played a bit with this: https://wp-dreams.com/knowledge-base/result-templating/ but I don’t get it working for taxonomy terms.

    Can I just use

    [php]<?php
    // This is the meta key
    $key = ‘auteur’;

    // We only want to do this on posts/pages/custom post types
    if ($r->content_type == ‘publicatie’) {
    $meta_value = get_post_meta( $r->id, $key, true );
    if ($meta_value != ”)
    echo "<div class=’author’>" . $meta_value . "</div>";
    }
    ?>

    <?php if ($s_options[‘showdescription’] == 1): ?>

    <?php echo $r->content; ?>

    <?php endif; ?>[/php]

    Or more something like “get_object_taxonomies”

    or not?

    Thanks!

    Tim

    in reply to: Problem with searching in custom post #5422
    timtim
    Participant

    Hi

    I’m trying to achieve the following:

    When a visitor search for an author (“auteur” is a custom taxonomy), the search field should show the publications by that author. But for the moment only the author himself is displayed in the results, what I not want.

    Can you give me some hint on how to proceed?

    Thanks,

    Tim

    in reply to: Problem with searching in custom post #5043
    timtim
    Participant

    Great! Thanks for the fast support.

Viewing 5 posts - 16 through 20 (of 20 total)