Okay, clearly I've got some serious issues with tags in general :). I put that bit of code in there and I get this error:
Fatal error: Call to a member function has() on a non-object in /brokenkode.com/user/themes/No9.6/home.php on line 30 Which is where that function is called. In addition to my other issue with tag related pages and the fact that when I put a tag in the tag tray it doesn't stay there, I'm guessing all of my tags are somehow seriously borked. Running the first DP release, and thoughts on what I should check to make sure my tag information is running correctly? Is there a list I could check? ----------------------------------------- Khaled Abou Alfa www.brokenkode.com On Mon, Nov 29, 2010 at 3:13 PM, Khaled Abou Alfa <[email protected]> wrote: > Sweet thanks Collin, will try and sort that out and report back. > ----------------------------------------- > Khaled Abou Alfa > > (leb) +961 70 429 469 > P.O Box 863, Saida, Lebanon > [email protected] > www.brokenkode.com > > > > On Mon, Nov 29, 2010 at 12:06 PM, Colin <[email protected]> wrote: >> Hi Khaled >> >> As you rightly pointed out, this is indeed due to the taxonomy changes. >> >> Instead of using: >> >> <?php if( in_array('Asides', $post->tags ) ): ?> >> >> ... you need to use the more intuitive ... >> >> <?php if ( $post->tags->has('Asides') ): ?> >> >> I'm in the process of walking through these changes and plan to >> document the changes once I fully understand them, assuming someone >> else doesn't beat me to it :-) >> >> Cheers, >> Colin >> >> >> On Sun, Nov 28, 2010 at 7:32 PM, Khaled Abou Alfa >> <[email protected]> wrote: >>> Another tag related question I have is on my index page, I try and filter >>> out posts with a specific tag, to style them differently. The way I do that >>> is using something like: >>> <?php if( in_array('Asides', $post->tags ) ): ?> >>> If it's tagged as an aside then it'll show up here and I style it in a way. >>> Alternatively I could have: >>> <?php elseif( in_array('Featured', $post->tags ) ): ?> >>> And style it in another way. >>> This appears to have stopped working as well (which I'm guessing is down to >>> the new changes in the taxonomy). Soooo any ideas how I can get this >>> functionality back? >>> Thanks again, >>> ----------------------------------------- >>> Khaled Abou Alfa >>> www.brokenkode.com >>> >>> -- >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/habari-users >> >> >> >> -- >> Colin Seymour >> Blog: http://colinseymour.co.uk >> Tech Stuff: http://lildude.co.uk >> Barefoot Running: http://barefootrunner.co.uk >> IRC: lildude #habari >> >> -- >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/habari-users > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-users
