Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Koji Otsuki
    Participant

    Hello,
    I had been using the previous version of Announcer plugin for a few years. It was great that I can display announcement messages in the dashboard area of an intranet portal site as content, not as a banner, using a PHP widget and the echo construct(<?php echo announcer( x ); ?>. Would you please consider allowing a similar function in the new version, perhaps with shortcodes?
    Also, if this is out of the question, would you make ver. 3 available again somewhere?
    Thanks!

    Hi Koji,

    Thanks for using announcer plugin.

    A shortcode announcements in the plan it will be available soon.

    Regarding PHP function you can try use the code below.

    1) Create an announcement
    2) Make it “inactive”
    3) Make Position -> Sticky = No
    4) Use below code.
    5) Replace ID with the announcement ID (you can find in the addressbar in the edit page)

    <?php
    
    $announcements = Announcer::get_announcements();
    $announcement_id = 'ID';
    ANCR_Display::html( $announcement_id, $announcements[ $announcement_id ] );
    
    ?>

    (or)

    If you want to go with the old version you can download from here –> https://wordpress.org/plugins/announcer/advanced/

    Thanks,
    Aakash

    Koji Otsuki
    Participant

    Hi Aakash,

    The code worked! I’m sure this is a huge help for many users!! And thank you for including the Announcer shortcode implementation in the future plan. Developers like you make our jobs a bit easier each day, and you deserve a couple of cups of coffee from me. Thank you!!

    Koji

    Hi Koji,

    I’m happy that your like the plugin !

    Please do rate if you have time.
    https://wordpress.org/support/plugin/announcer/reviews/?rate=5#new-post

    Cheers !

    Thanks,
    Aakash

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.