Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Search vs. Homepage

  • This topic is empty.
Viewing 8 posts - 31 through 38 (of 38 total)
  • Author
    Posts
  • #87918
    Faberuna
    Member

    Thanks Doc! {And everyone else. You guys make this neophyte’s little heart happy!}

    #87967
    TheDoc
    Member

    So, basically, anywhere you see “the_permalink”, it’s going to be linking to the post in question, and not your redirect. If you just comb through your search.php file you’ll see what I’m talking about. But here’s an example:


    " title="">

    #88005
    Faberuna
    Member

    OK, so what do I change?

    #88006
    Faberuna
    Member

    Do I put the custom field information?

    #88008
    TheDoc
    Member

    Yup. Treat it just like any other loop!

    #88054
    Faberuna
    Member

    Just to be sure, here is the code on my search.php


    Search Result for post_count; _e(''); _e('“'); echo $key; _e('”'); _e(' — '); echo $count . ' '; _e('articles'); wp_reset_query(); ?>








    • if ( has_post_thumbnail() ) { ?>
      $imgsrcparam = array(
      'alt' => trim(strip_tags( $post->post_excerpt )),
      'title' => trim(strip_tags( $post->post_title )),
      );
      $thumbID = get_the_post_thumbnail( $post->ID, 'background', $imgsrcparam ); ?>







      " title="">






















    What do i replace?

    #88120
    TheDoc
    Member

    In this line:

    " title="">


    You’ll see the_permalink. This is what links to your post. If you don’t want it to link to your post, you’ll have to change that.

    Anywhere you see:
    ">
    It will link to the post.

    #88130
    Faberuna
    Member

    [SOLVED] Fixed it. Instead of changing the code, which I have NO idea how to (I just tinker) I found a plugin that does it just as well. Thanks for your help!

Viewing 8 posts - 31 through 38 (of 38 total)
  • The forum ‘CSS’ is closed to new topics and replies.