PHPackages                             mwdelaney/acf-complex-titles - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mwdelaney/acf-complex-titles

AbandonedArchivedWordpress-plugin

mwdelaney/acf-complex-titles
============================

Complex titles with previews for WordPress content types using Advanced Custom Fields Pro 5.

1.16(7y ago)451.8k3[1 issues](https://github.com/MWDelaney/acf-complex-titles/issues)MITPHPPHP &gt;=5.3.2

Since Dec 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MWDelaney/acf-complex-titles)[ Packagist](https://packagist.org/packages/mwdelaney/acf-complex-titles)[ Docs](https://github.com/MWDelaney/acf-complex-titles)[ RSS](/packages/mwdelaney-acf-complex-titles/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (1)Versions (10)Used By (0)

Advanced Custom Fields Complex Titles
=====================================

[](#advanced-custom-fields-complex-titles)

A WordPress plugin that adds custom fields to create a formatted title

This plugin creates custom fields below the title Pages and automatically replaces `the_title()` when called from inside the loop.

[![Screenshot](/../gh-pages/screenshot.png?raw=true "Advanced Custom Fields Complex Titles")](/../gh-pages/screenshot.png?raw=true)

Requirements
------------

[](#requirements)

1. WordPress 4.5+
2. Advanced Custom Fields Pro 5

Usage
-----

[](#usage)

The following formatting options are included at this time:

1. Word or Phrase (the actual content, don't remove this one)
2. Emphasize
3. Size (small, medium, large)
4. Alignment (left, right, center)

The following layouts are also included for headline groups:

1. Alignment

### Add fields

[](#add-fields)

To add fields to the title(s), extend the Fields class as follows:

```
	 // Replace the plugin's Fields class with our class extending it
	 add_filter ('acfct_set_fields_class',  function() { return 'myFields'; });

	 // Add custom CSS to style the new fields
	 add_action ('complex_titles_css', 'addMyStyles');

	 /**
	  * Add styling for the new fields
	  * 	Naming scheme is as follows:
	  * 		.complex-title-element-[your-field-acf-name]
	  */

	 function addMyStyles() {
		 // Variable containing the styles we want to add
		 $myStyles = "
		 	.complex-title-element-underline {
				text-decoration: underline;
			}
		 ";

		 // Enqueue these styles along with the plugin's other styles
		 wp_add_inline_style( 'acf-complex-titles-style', $myStyles );
	 }

	 // Our class extending the plugin's class to add new fields
	 class myFields extends MWD\ComplexTitles\Fields {
		 /**
 		 * Field: Underline
 		 *
 		 * @author Michael W. Delaney
 		 * @since 1.0
 		 *
 		 * Checkbox
 		 */
 		public $underline = array (
 			'order' => '10',
 			'field' => array (
 				'key' => 'acfct_underline',
 				'label' => 'Underline',
 				'name' => 'underline',
 				'type' => 'true_false',
 			)
 		);
	 }
```

### Enable only some fields

[](#enable-only-some-fields)

To remove fields from the available list, declare theme support for only the fields you wish to use:

```
add_theme_support( 'complex-titles-fields', array( 'word-or-phrase', 'size' ) );
```

### Enable only some layouts

[](#enable-only-some-layouts)

To remove layouts from the available list, declare theme support for only the layouts you wish to use:

```
add_theme_support( 'complex-titles-layout', array( 'alignment' ) );
```

### Change which post types get Complex Titles

[](#change-which-post-types-get-complex-titles)

By default complex titles are enabled for Pages, to define which post types complex titles should be available on, declare theme support:

```
 $landing_page_templates = array(
   array (
     array (
       'param' => 'post_type',
       'operator' => '==',
       'value' => 'page',
     ),
     array (
       'param' => 'page_template',
       'operator' => '!=',
       'value' => 'template-no-header-image.php',
     ),
   ),
 );
 add_theme_support( 'complex-titles-location', $landing_page_templates );
```

Templates
---------

[](#templates)

Basic templates and styles are included. These templates are designed to be simple for styling via your theme. To override the included templates, copy the template(s) you wish to override from `templates` to your theme in a sub-directory called `ct-templates`

Styles
------

[](#styles)

This plugin ships with basic styling for the default fields. These styles are enqueued on the front-end and in the WordPress admin so that the Complex Title preview area matches the front-end as closely as possible. To dequeue these styles and replace them with your own, add the following to `functions.php`

```
remove_action('complex_titles_css', array( $acf_complex_titles, 'front_end_styles' ) );
```

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~106 days

Total

9

Last Release

2845d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8eeadbfceef9e730e3df7fe1e01b12742f28e8f7d8bf52ed87d01d41b8918adb?d=identicon)[MWDelaney](/maintainers/MWDelaney)

---

Top Contributors

[![MWDelaney](https://avatars.githubusercontent.com/u/2457670?v=4)](https://github.com/MWDelaney "MWDelaney (81 commits)")

---

Tags

pluginwordpressadvanced custom fieldstitle

### Embed Badge

![Health badge](/badges/mwdelaney-acf-complex-titles/health.svg)

```
[![Health](https://phpackages.com/badges/mwdelaney-acf-complex-titles/health.svg)](https://phpackages.com/packages/mwdelaney-acf-complex-titles)
```

###  Alternatives

[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

46876.8k](/packages/sybrew-the-seo-framework)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.5k](/packages/afragen-git-updater)[webdevstudios/cmb2-attached-posts

Custom field for CMB2 for creating post relationships.

13565.4k](/packages/webdevstudios-cmb2-attached-posts)[alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

263.6k](/packages/alleyinteractive-pest-plugin-wordpress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
