• Resolved worels

    (@worels)


    Hi
    When I use the search for terms used in my static pages, I will get the excerpt with highlighted terms in the results-page but they doesn’t link to the pages, so it’s pretty useless …
    I would like to have the results as clickable links to the pages, they come from, just like it is in results for posts.

    Another problem is, that there are no results for cutom post types (pages) and the metabox – fields inside them …

    How can I realize this ?

    tnx and
    brgds
    Worels

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    It’s not Relevanssi’s job to provide the links. You need to edit your theme search results template. Currently you only have the_excerpt() there for each post. Try adding this:

    <a href="<?php the_permalink();?>"><h3><?php the_title(); ?></h3></a>

    That will print out a title that’s a clickable link, too.

    <p><a href="<?php the_permalink();?>">Read more</a></p>

    will print out just a link.

    To get custom post types in the result, make sure those post types are checked in the list of post types to index in Relevanssi Indexing settings, and to get metaboxes, you can try setting the “Custom fields to index” setting to “All”. Then rebuild the index.

    Thread Starter worels

    (@worels)

    Hi @msaari
    Tnx for your answer.

    Perfect, it works !!

    Tnx a lot !

    • This reply was modified 7 years, 2 months ago by worels.
    • This reply was modified 7 years, 2 months ago by worels.
    Plugin Author Mikko Saari

    (@msaari)

    For posts, the template uses content.php. Does changing that file do anything?

    Thread Starter worels

    (@worels)

    I was working in the wrong directory ??

    Thread Starter worels

    (@worels)

    So tnx again for you sudden and competent help …
    You made my day ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Searchresults of pages without links’ is closed to new replies.