All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Can't hide the date on Announcement with Dkret3 theme  (Read 1441 times)

0 Members and 1 Guest are viewing this topic.

Offline jpg001

  • Newbie
  • *
  • Posts: 2
    • View Profile
Can't hide the date on Announcement with Dkret3 theme
« on: 16 February 2009, 16:18 »
[Wordpress 2.7.1, dkret3 2.3 theme, www.colombelesvesoul.fr/wordpress, WP-Sticky 1.4, plugins disabled (only Sticky)]

sticky parameters :
Categories Only: NO
Display Date: NO
Announcement Banner: annonce

with an other theme (Pixeled for example) no problem.

with dkret3 version 2.3 or the last 2.5.2, i past "<?php announcement_banner(); ?>" in the index.php under "<?php while (have_posts()) : the_post(); ?>".
No problem, i see "annonce" above the first post, but i see also the date.
i change the_time() with the_date() in the index.php, but after i see also the date. I precise, there is two "the_time()", two "get_the_time()" and one "php the_time()" in the index.php

thank you

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Can't hide the date on Announcement with Dkret3 theme
« Reply #1 on: 16 February 2009, 16:37 »
Actually if you use the_date(), you do not need to have announcement banner.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline jpg001

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Can't hide the date on Announcement with Dkret3 theme
« Reply #2 on: 16 February 2009, 18:08 »
heu......

my target is : i don't want to see the date for a annoucement post ;)  , it's a old love with stickty (june 2008) :-*  but a problem without a good solution

in the index.php:

1:if i use "<?php announcement_banner(); ?>" only, i see the banner above the post, and a normal post with the date in the first postion

2:if i use "the_date" only, i see a normal post with the date in the first position

3:if i use "<?php announcement_banner(); ?>"+"the_date" see number 1

i join my Dkret3 version 2.5.2 original index.php

thank you

[attachment deleted by admin]

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Can't hide the date on Announcement with Dkret3 theme
« Reply #3 on: 17 February 2009, 00:45 »
I think your code is wrong.

Code: [Select]
<div class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s &#8211; %2$s''dkret'), the_date(''''''false), get_the_time()) ?></abbr></div>the_date() is not a return function, it is a printing function, you cannot use it within printf.

Just put the_date() before
Code: [Select]
<div id="post-<?php the_ID(); ?>" <?php post_class('gallery-post home'?>> and you will get what I mean.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.