Jump to content


Photo
- - - - -
Resolved

Featured Image On Search Results Template

featured image search template framework

  • Please log in to reply
10 replies to this topic

#1 WebIT

WebIT

    Super Member

  • Members
  • 232 posts
  • LocationCape Cod
  • Country: Country Flag

Posted 02 November 2012 - 01:10 AM

Is there a way to display the featured image as a thumb on the search page template in framework?

#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 02 November 2012 - 02:46 AM

Hi there, you could use a hook/filter to do this. However this plugin might be easier, try it and if it doesn't work as expected let us know and we'll help you with the hook.

Please Login or Register to see this Hidden Content



#3 WebIT

WebIT

    Super Member

  • Members
  • 232 posts
  • LocationCape Cod
  • Country: Country Flag

Posted 02 November 2012 - 03:11 AM

I'm guessing I add <?php get_the_image(); ?> to the search.php file? That's what I'm going to try.

#4 WebIT

WebIT

    Super Member

  • Members
  • 232 posts
  • LocationCape Cod
  • Country: Country Flag

Posted 02 November 2012 - 03:41 AM

Found this bit of code from a wp forum. Says to place in the search.php

Please Login or Register to see this Hidden Content

Where should this go?

#5 WebIT

WebIT

    Super Member

  • Members
  • 232 posts
  • LocationCape Cod
  • Country: Country Flag

Posted 02 November 2012 - 01:08 PM

Where is search.php?

#6 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 02 November 2012 - 02:59 PM

search.php is the search form file WP provides in themes by default (located in the theme folder directories), but PageLines does not use this file since the structure is a bit different, adding that code to any of the PageLines files may not work. In this case, a different code solution may be needed.

#7 WebIT

WebIT

    Super Member

  • Members
  • 232 posts
  • LocationCape Cod
  • Country: Country Flag

Posted 04 November 2012 - 11:42 PM

James, or anyone know how to do the hook/filter method?

#8 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 08 November 2012 - 06:48 AM

I'll check with one of the developers to see if there's an easier way to do this for you.

I can point you in the right direction to find the hooks api and the reference files but you'll need to know the correct PHP to enter to pull through the content. The code you've pasted above doesn't look like it would work inside the framework, as we'd have our own structure which would differ from the standard wordpress setup.

A list of the pagelines hooks can be found here

Please Login or Register to see this Hidden Content



#9 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 November 2012 - 10:14 PM

Hi there, i've checked with the dev team. Apparently you can now add the thumbs automatically to the search page by checking a radio box in Pagelines>site options>blogs and posts. Scroll down to the 'thumbnail placement section', you'll see a radio box for 'search page'.

#10 WebIT

WebIT

    Super Member

  • Members
  • 232 posts
  • LocationCape Cod
  • Country: Country Flag

Posted 10 November 2012 - 01:13 PM

Great feature. Works wonderfully. Thank you! Resolved.

#11 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 10 November 2012 - 07:22 PM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved, featured image, search template, framework