Page 1 of 1

Remove Date From Sticky Post?

Posted: Wed May 30, 2012 11:24 am
by Maccsta
Hi!

I am using the Extended body plugin on my blogs to show a sticky post. I'd like to remove the date for this one post.

What code would I need to add to the Customfields to allow this?

Thanks for any help :)

Re: Remove Date From Sticky Post?

Posted: Wed May 30, 2012 1:14 pm
by yellowled
Maccsta wrote:I am using the Extended body plugin on my blogs to show a sticky post. I'd like to remove the date for this one post.

What code would I need to add to the Customfields to allow this?
None. You can to that in your template's entries.tpl. Most templates usually do this. To be exact, they replace the date with a note "Sticky posts" for, well, sticky posts.

Basically, all you need to do is wrap the line of your entries.tpl which emits the date in

Code: Select all

{if not $dategroup.is_sticky}

{/if}
Which line that is depends on your template, of course. Unless you're using a custom template, you can just name your template if you need help. If you use a custom template, you'll probably know what to do. :)

YL