.inside code {background:#00a0d2; border-radius: 4px; color: #fff;} p.acf-cta-action { background: #ff2828; padding: 10px; text-align: center; color: #FFFFFF; } p.acf-cta-action a { color: #fff; font-size: 18px; font-weight: 800; }'; echo '

UPDATE TO PRO VERSION

'; echo '

Show custom field or meta_key value on frontend without coding. Pain-free plugin for non-tech savvy & help you make website faster!

'; echo '

To use the plugin:

'; echo '[cats_field group_id= field= auto_loop= excerpt= post_id=]'; echo ''; echo '

PRO version can display more field types & also meta_key of any post/page/taxonomy

'; echo '

UPDATE TO PRO VERSION NOW

'; } add_action('admin_notices', 'acf_frontend_display_notice'); function acf_frontend_display_notice() { if (is_plugin_active('acf-frontend-display/acf-frontend-display.php')) { $admin_url = get_admin_url(); echo '

Voila! ACF Frontend Display is activated. The instruction is available on your dashboard, please take a look at your Dashboard

'; } } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-acf-frontend-display-deactivator.php */ function deactivate_acf_frontend_display() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-acf-frontend-display-deactivator.php'; Acf_Frontend_Display_Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_acf_frontend_display' ); register_deactivation_hook( __FILE__, 'deactivate_acf_frontend_display' ); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-acf-frontend-display.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_acf_frontend_display() { $plugin = new Acf_Frontend_Display(); $plugin->run(); } run_acf_frontend_display();