WP Manifestindependent plugin directory
manifest / builders / acf-author-fields

BA ACF Author Fields

Outputs ACF custom fields from the “Author” custom post type into blog posts built with Elementor for BA Group.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/alex27021993/acf-author-fields/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Outputs ACF custom fields from the “Author” custom post type into WordPress blog posts built with Elementor.
Works with an ACF Relationship/Post Object field on the post (e.g., author_ref) and exposes lightweight shortcodes to pull any author field (text/URL, Link, Image, Gallery, Repeater, Relationship, Taxonomy, Date, etc.).

  • Author: Alex Abashyn
  • Version: 1.1.0
  • License: GPL-2.0+
  • Text Domain: ba-acf-author-fields

✨ Features

  • Pull any ACF field from the linked “Author” CPT into a post.
  • Dedicated shortcodes for:
    • Author title (with optional link)
    • Author permalink
    • Universal field renderer (auto-detects field types)
    • Image helper for author photos (ID / URL / array / sizes)
  • Elementor-friendly: shortcodes work in Dynamic Tags → Shortcode (for text, link, image URL), as well as in HTML/Text widgets.
  • Supports multiple authors via index="N".
  • Safe escaping by default; optional HTML output for WYSIWYG.

📦 Installation

  1. Create a folder:
    /wp-content/plugins/ba-acf-author-fields/
  2. Create a file inside it:
    ba-acf-author-fields.php
  3. Paste the plugin code (from your repo).
  4. Activate in WP Admin → Plugins.

Prerequisites:

  • WordPress 5.8+
  • Advanced Custom Fields (ACF)
  • (Optional) Elementor / Elementor Pro

🧩 ACF & CPT Setup

  • CPT: Author (e.g., slug author).
  • In Posts (standard post type), create an ACF field (Relationship or Post Object) that links to Author.
    Recommended meta key: author_ref (Return Format: Post ID, though the plugin normalizes both).
  • In Author CPT, create your fields, e.g.:
    • linkedin (URL), twitter (URL), dosvid (Text/Number), foto_avtora (Image), etc.

🔧 Shortcodes

1) Author title

[acf_author_title field="author_ref" index="0" fallback="" link="0"]

2) Author permalink (URL)

[acf_author_link field="author_ref" index="0" fallback=""]

3) Photo helper (sugar for images)

[acf_author_photo author_field="foto_avtora" field="author_ref" index="0" size="medium" mode="url|img" class="" alt="" fallback=""]

[acf_author_photo author_field="foto_avtora" field="author_ref" index="0" size="medium" mode="url|img" class="" alt="" fallback=""]

Elementor Usage Text/Heading → Dynamic Tags → Shortcode: [acf_author_title] [acf_author_field author_field="dosvid"] Link/URL fields → Dynamic Tags → Shortcode: [acf_author_link] [acf_author_field author_field="linkedin" mode="url"] Image widget (URL source) → Dynamic Tags → Shortcode: [acf_author_photo mode="url" size="large"] HTML widget (need immediately): [acf_author_photo mode="img" class="rounded-full" alt="Author"]