Help - Search - Members - Calendar
Full Version: Hide MTEntries after 2 days
Movable Type Community Forum > Additional Resources > Tips and Tricks
royville
Alright. I've got a section that says that is at the top of my page. I was wondering if there was coding that would act like..

if hasen't been updated in 2 days then do not display

or something along that line. I've got this as my code- and I want it to be all stripped out from my blog if that category hasn't been updated in 2 days...

I want all of it not to be displayed if it that category hasn't been posted to in 2 days. Anyone have any ideas?
girlie
Do you intend to rebuild your blog every day? If not, you'll need to use something like PHP or Javascript to get the dynamic effect that you want.
trialanderror
Probably DateTags will work for you.

After reading the documentation, you may want to chose MTDate (which is if I remember correctly is the build date) as the "base date". This would be the comparison value used to determine whether posts are displayed or not.


hope this helps

t&e
royville
that would do the trick?

CODE
<MTEntries category="Exclusive" days="2">
royville
Is there any easy way to put every entry into one new category???
royville
actually, is there a way to say

CODE
<MT Entries DoNotPostCat="Exclusive">
for all the other posts?
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-2010 Invision Power Services, Inc.