Help - Search - Members - Calendar
Full Version: lastn and category filter
Movable Type Community Forum > Additional Resources > Tips and Tricks
goluboy
It seems that MT cannot recognize the following code:

CODE
<MTEntries lastn="10" category="cat1 AND cat2">
     <span class="question"><a href="<$MTEntryLink$>"><b><$MTEntryTitle$></b></a></span><br>
       <span class="ptime"><font color="#000000"><$MTEntryExcerpt convert_breaks="0"$> (<$MTEntryDate format="%B %e, %Y"$>)</font></span><br><br>
</MTEntries>


I've tried, and I've tried, and I've tried. It won't display anything.

Is there a way around it?
girlie
Do you have entries that have been assigned to BOTH cat1 and cat2?

By that, I don't mean there's one entry in cat1 and another in cat2, I mean there's at least one entry which has both categories assigned to it.
goluboy
Hmm... not sure if I'm following.. what I want to do is list the last 10 entries from cat1 and cat2. Or is that not allowed?
goluboy
Ooops.. I'm such a dumbass. I should've used OR, not AND. It all works now. Thanks!
girlie
Yep, OR not AND. That's right where I was headed. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.