Support » Theme: Admiral » Search

  • Resolved worels


    I just realized, that the WP search of my Admiral Child Theme is pretty useless.
    It finds little, and the results (of static pages) are no clickable links.

    I use WP primarily as a CSS and try to make/code as much as my possibilities will allow on my own …
    So I mainly use pages instead of posts and some of them are custom-post-type pages. Some of them consist only of metabox custom fields.

    No matter, what I’ve tried, the search results I get do not meet my needs. The biggest pain is, that, even if I use plugins like Relevanssi or curry-search or search-everything, the post results of static pages just show a part(excerpt) of the found entries, but WON’T LINK to the pages, where the entries were fond. That is pretty USELESS.
    The next pain is, that the search doesn’t find terms in the metabox custom fields in the custom post type pages …

    It must have something to do, how admiral organizes and format it’s search/results, but I don’t know how to change this

    So what can I do, to force my search to find entries in:
    Static pages
    Custom post type (static)pages
    (Metabox) Custom fields content
    Custom post type pages
    (Categories, Tags ? )
    AND, and that’s important: display them ALL as clickable links to the pages, the found entries come from ….

    I hope my English is good enough, to make clear, what I mean.

    Tnx in advance

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Solution:

    1. Use Relevanssi (or similar)
    In the content-search.php (Best copied to a child-theme with folder and also copy search.php there)
    you have to add in the loop:
    <a href="<?php the_permalink();?>"><h3><?php the_title(); ?></h3></a>
    than you get the results with the links.
    In my case, there was only: the_excerpt()

    Theme Author ThemeZee


    Hi there,

    It is pretty common that search results only display the excerpt of your posts and pages, since you want to show a lot of results. That is easier if not the full text of each post or page is shown.

    Also as usual for nearly every WordPress theme, the title of the page or post links to the single post / page, so actually every search result is clickable.

    Post Details like date, category or comments are only displayed for posts, not for static pages. This is also typical for most WordPress themes.

    So I don’t see how Admiral should be improved here, the search works fine.

    Please also note that the theme just displays the search results. If you want to show different results you need extra plugins to change the default WordPress Core search.


    Sorry, but your answer is way to late …
    Do you really think, someone would need any answer months later ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search’ is closed to new replies.