Extending Advanced Custom Fields With Your Own Controls

The article explains how to extend the Advanced Custom Fields (ACF) WordPress plugin by creating custom field controls tailored to specific needs. It guides developers through building a custom “Country Selector” field, covering setup, defining field settings, rendering the field, adding scripts, and modifying saved values, highlighting ACF’s flexibility and support for enhancing user-friendly interfaces with custom JavaScript and styling.

http://www.smashingmagazine.com/2015/09/extending-advanced-custom-fields-with-your-own-controls

SumoMe

BDOW! is an advanced website pop-up and form tool designed to help businesses build larger, more engaged email lists by creating customizable, on-brand pop-ups, forms, and smart bars with advanced targeting and behavior triggers. The platform offers features like countdown timers, social proof notifications, A/B testing, seamless integration with popular marketing tools, and real-time performance analytics, making it ideal for boosting conversions and optimizing online marketing efforts. Users have reported significant improvements in conversion rates and sales after implementing BDOW! on their sites.

http://sumome.com

The Killer WordPress Checklist Infographic

The article highlights “The Killer WordPress Checklist Infographic” by Capsicum Mediaworks LLP, which offers a comprehensive set of seven detailed checklists covering all steps needed to successfully launch, develop, and maintain a WordPress website. This resource is designed to guide both beginners and experts through the process of building their ideal WordPress site efficiently.

http://phirebase.com/blog/wordpress-checklist-infographic

How to Customize WordPress Tag Cloud Widget

Display All Tags

The number of Tag Cloud widget tags are limited to 45 by default. Default format of the cloud display is flat. To set number to unlimited and format to list:

function set_tag_cloud_args($args) {
	$args = array('number' => 0, 'format' => 'list');
	return $args;
}
add_filter('widget_tag_cloud_args','set_tag_cloud_args');

How to Display Text to Only Logged in WordPress Users

Create Shortcode for Logged in Users

function logged_in_only_shortcode($atts, $content = null) {
    if (is_user_logged_in() && !is_null($content) && !is_feed()) {
        return $content;
    }
}
add_shortcode('logged_in_only', 'logged_in_only_shortcode');

To use this shortcode in your post use the following code.

[logged_in_only]User is logged in.[/logged_in_only]

Create Shortcode for Logged Out Users

function logged_out_only_shortcode($atts, $content = null) {
    if (!is_user_logged_in() && !is_null($content) && !is_feed()) {
        return $content;
    }
}
add_shortcode('logged_out_only', 'logged_out_only_shortcode');

To use this shortcode in your post use the following code.

[logged_out_only]User is logged out.[/logged_out_only]

Resource: Display Text To Only Logged In WordPress Users

How to Remove WordPress’ jQuery and Use Google’s CDN Version Instead?

Why Use Google’s CDN?

The three most commonly cited reasons to dequeue WordPress’ bundled version of jQuery in favor of Googles are:

  1. Decreased Latency.
  2. Increased Parallelism.
  3. Better Caching.

Why NOT Use Google’s CDN?

  1. WordPress takes great care to make sure its bundled libraries are fully compatible with other bundled scripts. jQuery is loaded in “no conflict” mode to prevent any potential script collisions over the $ variable in the global namespace.
  2. If you load jQuery 1.9 yourself from Google’s CDN, you’ll miss out on the jQuery Migrate plugin and end up breaking several themes and plugins that depend on these deprecated APIs.
  3. Also, WordPress is taking steps to prevent you from dequeueing jQuery on the back end at all.

Source: Don't Dequeue WordPress' jQuery

Then, How to Remove WordPress’ jQuery and Use Google’s CDN Version Instead?

function jquery_cdn() {
   if (!is_admin()) {
      wp_deregister_script('jquery');
      wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3');
      wp_enqueue_script('jquery');
   }
}
add_action('init', 'jquery_cdn');

Comment by Nathan Rice:

This is almost sure to cause warnings if you have WP_DEBUG on. The reason being that wp_register_script should only be called on the wp_enqueue_scripts action hook.

Sources:
How to load jQuery from Google CDN
Replace default WordPress jQuery script with Google Library

How to Add an Admin Bar Menu Link

add-wordpress-admin-bar-menu-link

Here is an example code how to add Editorial Calendar plugin admin bar menu link:

function add_editorial_calendar_admin_bar_link() {
	global $wp_admin_bar;
	if (!is_super_admin() || !is_admin_bar_showing())
		return;
	$wp_admin_bar->add_menu(array(
		'id' => 'editorial_calendar_link',
		'title' => __('Editorial Calendar'),
		'href' => __('http://' . strtolower($_SERVER['HTTP_HOST']) . '/wp-admin/edit.php?page=cal'),
	) );
}
add_action('admin_bar_menu', 'add_editorial_calendar_admin_bar_link', 75);

The UI Problem of WordPress Plugins and Themes

Trent:
Our old theme options had WordPress like tabs, and check boxes galore. We then opted for making our theme options intuitive, and pretty. They look more like an iOS device then they do WordPress, and guess what? Our support requests dropped significantly, and we never have to link users to our documentation anymore.

Survey: WordPress Continue to Dominate Open Source CMS Market

According to water&stone, WordPress, Drupal, and Joomla continue to dominate open source market in 2011 with WordPress clearly leading.

Survey looked at downloads, installations and third-party support.

Downloads a week

  1. WordPress: 640,000
  2. Joomla: 86,000
  3. Drupal: 23,000

Download numbers are really not that accurate, because there are checkouts from repositories and web hosts' one click installs.

Alexa One Million

  1. WordPress: 53.6%
  2. Joomla: 9.6%
  3. Drupal: 6.4%

BuiltWith Installs

  1. WordPress: 4.2 million
  2. Joomla: 1.7 million
  3. Drupal: 308,000

Books in Print

  1. WordPress: 83 books, 23 released in 2011
  2. Drupal: 64 books, 22 released in 2011
  3. Joomla: 65 books, 13 released in 2011

It's interesting that Drupal books new releases are so close to WordPress. Maybe that tells about active developer community?

Scroll to Top