Forums

Annoucement Banner [Plugin: WP Sticky] (5 posts)

  1. softstor
    Member
    Posted 4 years ago #

    I have the Display Date set to NO and the Post set to ANNOUNCEMENT.

    But the Announcement Post still shows the date. What may be the problem?

  2. raygene
    Member
    Posted 4 years ago #

    As instructed in the "Readme" file:

    By default, the Announcement Banner will be displayed if your theme is using the_date(); within its templates. But if your theme is not using the_date(); and you want to display the Announcement Banner

    Use: <?php announcement_banner(); ?>

  3. Tony-Details
    Member
    Posted 4 years ago #

    Can anyone give further explanation into this? Do I need to modify a template page or just put that code in somewhere? The readme indicated it had something to do with the "loop" which I don't really know what that is exactly.

  4. mr_abboud
    Member
    Posted 4 years ago #

    Is there a certain module for banners?
    [sig moderated]

  5. Lynn
    Member
    Posted 3 years ago #

    Put <?php announcement_banner(); ?> in your Main Index Template (index.php) in the "loop" that begins with

    <div id="post-<?php the_ID(); ?>">

    Then whatever text you entered for "Announcement Banner" in Settings > WP-Sticky will appear, e.g. "Hot News," "Announcement," "TOP STORY," etc.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags