Forums › Forums › Search & Filter Pro › Link the Result Image
Tagged: Link image Result
- This topic has 9 replies, 2 voices, and was last updated 8 years, 6 months ago by Anonymous.
-
Anonymous(Private) May 20, 2016 at 4:27 pm #46172
Hey Team,
How can i link the Image of each result,in result page, to the attached post (Post = Download via Download Manager for WordPress).
http://www.versicherungsbedingungen-online.de/suchseite
Greats
Trevor(Private) May 20, 2016 at 4:42 pm #46181You appear to be using the shortcode results method, so that is good. Did you make a copy of results.php and place it in a folder called search-filter in your theme folder?
If so, find this code block:
<?php if ( has_post_thumbnail() ) { echo '<p>'; the_post_thumbnail("small"); echo '</p>'; } ?>
and make it this (I think):
<?php if ( has_post_thumbnail() ) { echo '<a href="' . the_permalink() . '">'; the_post_thumbnail("small"); echo '</a>'; } ?>
Anonymous(Private) May 20, 2016 at 5:35 pm #46193works perfect!
Thanks allot!I have one last question and also the last problem befor going live.
I wan´t to display the taxonomies into my single download page (Post-page).
I know that this is not you area of support, but maybe you could help me with one thing, because i need the right S&F PHP Information to set up the code, so i can input everything into my download template.The support team of Download Manager send me this code:
http://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/<?php add_filter('wdm_before_fetch_template','my_fetch_template',10,1); function my_fetch_template($vars){ //your code here $vars['tag-name'] = "tag value"; $vars['new_tag'] = callback_function(); return $vars; } ?>
After including this code with the right paramteres, i should be able to use [tag-name] in my template editor (From WPDM) for the single download layout.
One Taxonomie for example is called “versicherer” and its assigned to the Post Type ” wpmdpro”.
Can you help me with that?
Greats
-
AuthorPosts