[Plugin: AWSOM News Announcement] Error in the new Awsom News Announcement 1.5.0 (2 posts)

  1. Dwords
    Posted 7 years ago #

    With the latest upgrade that came in today for Awsom-News Plugin, I got the following error message on my page where I've got the code that is used to display your news announcement. The plugin was working fine for a long time, until the upgrade that came today. Now the error message says:

    Warning: Missing argument 1 for display_my_news_announcement() in /home6/dgoldin/public_html/green/wp-content/plugins/awsom-news-announcement/awsomnews.php on line 111

    Anyone know how to fix?

    It is a good plugin. I want to make it work again.


  2. Dgold
    Posted 7 years ago #

    Replace the function that calls this plugin, with this updated version:

    <!-- Start AWSOM News Announcement Block -->
    <div id="announcement">
    <?php if (function_exists('display_my_news_announcement')) { display_my_news_announcement(0); } ?>
    <!-- End AWSOM News Announcement Block -->

    The thing added in the latest version is the (0)

Topic Closed

This topic has been closed to new replies.

About this Topic