Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Thanks Doc! {And everyone else. You guys make this neophyte’s little heart happy!}
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:
OK, so what do I change?
Do I put the custom field information?
Yup. Treat it just like any other loop!
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 ); ?>
What do i replace?
In this line:
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.
[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!