News Communications Hub

外掛說明

The Pragmatic Coders News Communications Hub is a flexible WordPress plugin that allows you to display news notifications and updates on your website. With full integration for custom post types, Elementor support for icons, and customizable notification types, it’s the perfect tool to keep your users informed and engaged.

Key Features:

  • Add, edit, and delete notifications from the WordPress admin interface.
  • Full support for selecting custom post types to display as notifications.
  • Custom notifications can have specific start and end dates, allowing for time-sensitive announcements.
  • Options to separate custom notifications into those visible for first-time visitors and subsequent visits.
  • Integration with Elementor and WordPress icons for enhanced visual styling.
  • Shortcodes and widgets for easy placement of notifications on any page.
  • Option to log notification activity in a log file for debugging.
  • Fully responsive design with customizable styles via CSS.
  • Optimized code to minimize database queries and improve performance.

Demo

View demo

Have a business inquiry?

Feel free to contact us

螢幕擷圖

  • Notification widget on the front-end of a website.
  • Admin panel for adding and managing custom notifications.
  • Admin panel settings tab.
  • Admin panel settings tab.
  • Icon selection from Elementor integration.
  • Admin panel CRON settings tab.
  • Admin panel transients settings tab.
  • Admin panel logs.

安裝方式

  1. Upload the news-communications-hub folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Configure the settings and start adding notifications from the Pragmatic Coders > News Communications Hub menu in the WordPress admin area.

Important: If you have a caching plugin installed with JavaScript minification or file concatenation enabled, make sure to add nch-script.js to the exclusion list. This ensures that the script functions correctly without interference from caching.

常見問題集

Can I choose different post types for notifications?

Yes, you can select custom post types directly from the plugin settings to include posts, pages, or any other post type in your notifications.

Can I use icons from Elementor?

Yes, the plugin integrates with Elementor’s icon library, allowing you to choose icons when creating notifications. You can also use WordPress’s native Dashicons.

How do I add notifications to a page?

You can use the built-in widget or the provided shortcode [pcnch] to display notifications on any page.

Can custom notifications have specific start and end dates?

Yes, you can set specific start and end dates for each custom notification, allowing for time-sensitive announcements.

Is there a way to differentiate notifications for first-time visitors?

Yes, you can create notifications that are visible only for first-time visitors, as well as those that appear on subsequent visits.

How is the code optimized for database queries?

The plugin utilizes efficient database queries to minimize overhead, caching results when possible, and reducing the number of queries executed per page load for optimal performance.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈News Communications Hub〉的開發相關工作。

參與者

將〈News Communications Hub〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

  • Changed the logic of the plugin to use cron for generating transients at a set interval (by default, daily at 9 AM).
  • Two transients are now generated: daily and first_visit.
  • Articles that have been read are stored in a separate transient for a longer period.
  • New notifications are fetched dynamically based on the generated daily and first_visit transients.
  • Improved notification handling to ensure real-time fetching of notifications with custom dates for posts.

1.0.0

  • Initial release with full notification management, widget and shortcode support, and Elementor integration.