• marthahasaquestion

    (@marthahasaquestion)


    hello,
    I have a static page that displays several posts (a “glossary” page that shows entries for a, b, c, …). now, when searching for a word in a post the search result list shows the post name (e.g. “a”). clicking on the post name i am directed to the post page (“www.mydomain/a”)- but in my case, the “a”-post page is empty! instead, I want the link to point directly to the page where the post is listed (“www.mydomain/glossary”)!
    how can I do this??
    currently I use:

    <div class="p1">
    <a href="<?php the_permalink() ?>"
    <?php the_title_attribute(); ?>><?php the_title(); ?>
    </a>
      </div>

    how should I change it? thank you!!

  • The topic ‘how to link post title-search result to the static page where the post is displa’ is closed to new replies.