Jump to content


Photo
- - - - -

Feature on Category Page


  • Please log in to reply
7 replies to this topic

#1 indakno

indakno

    Super Member

  • Members
  • 110 posts
  • Country: Country Flag

Posted 18 July 2012 - 03:15 AM

I have the feature section showing on the Category page. How do I get the feature to show only the features of that particular category?

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17015 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 18 July 2012 - 10:15 AM

Hi Indakno, This isn't currently possible and has been added to our tracker as a feature request.

#3 indakno

indakno

    Super Member

  • Members
  • 110 posts
  • Country: Country Flag

Posted 18 July 2012 - 06:15 PM

Thank You. Please keep me posted.

#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 18 July 2012 - 06:49 PM

Actually it is possible, all PageLines options are filterable! This is a very powerful filter ;)

So the option in question is feature_category so we have to use a filter called ploption_feature_category which will overide the category you have set. Then in the filter we will just feed it with whatever the current category is. Here is the code, add it to the customize plugin functions.php

Please Login or Register to see this Hidden Content



#5 indakno

indakno

    Super Member

  • Members
  • 110 posts
  • Country: Country Flag

Posted 26 July 2012 - 04:50 PM

So, how does this work for each different category page? I have about 11 or 13 different categories. Or does it automatically pull the correct category features? Thanks for your help.

#6 Rob

Rob

    One Smart Egg

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

Posted 26 July 2012 - 06:27 PM

Simon's code picks up the features from the category where the slider appears, so in reply to your last question, yes it does. In response to the first... trust that if Simon says... it works. After all, he wrote most of it.

#7 indakno

indakno

    Super Member

  • Members
  • 110 posts
  • Country: Country Flag

Posted 26 July 2012 - 07:17 PM

Ok. I will try it and see how it goes and let you guys know. Thanks!

#8 indakno

indakno

    Super Member

  • Members
  • 110 posts
  • Country: Country Flag

Posted 26 July 2012 - 07:19 PM

IT WORKED!!!!! Thanks guys.