Plugin Directory

Changeset 3472143


Ignore:
Timestamp:
03/01/2026 04:05:02 PM (8 days ago)
Author:
soliddigital
Message:

Update to version 1.2.0 from GitHub

Location:
repeaters-relationships-connector-acf-elementor
Files:
44 added
2 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • repeaters-relationships-connector-acf-elementor/tags/1.2.0/includes/modify_query_results.php

    r3457626 r3472143  
    55if ( ! \defined( 'ABSPATH' ) ) {
    66    exit; // Exit if accessed directly.
     7}
     8
     9/**
     10 * Resolves the current context ID for ACF field lookups.
     11 *
     12 * On taxonomy archives, returns the ACF-formatted '{taxonomy}_{term_id}' string.
     13 * On singular posts/pages, falls back to get_the_ID().
     14 *
     15 * @return int|string The post ID or ACF-formatted term identifier.
     16 */
     17function resolve_current_context_id() {
     18    $queried_object = \get_queried_object();
     19    if ( $queried_object instanceof \WP_Term ) {
     20        return $queried_object->taxonomy . '_' . $queried_object->term_id;
     21    }
     22    if ( $queried_object instanceof \WP_User ) {
     23        return 'user_' . $queried_object->ID;
     24    }
     25    return \get_the_ID();
    726}
    827
     
    1736    $data_source = $widget->get_settings( 'post_query_acf_data_source' );
    1837    if ( empty( $data_source ) || 'current_post' === $data_source ) {
    19         return \get_the_ID();
     38        return resolve_current_context_id();
    2039    }
    2140    return $data_source;
  • repeaters-relationships-connector-acf-elementor/tags/1.2.0/includes/register_controls.php

    r3457626 r3472143  
    119119        private function get_acf_data_source_options() {
    120120            $options = [
    121                 'current_post' => \__( 'Current Post/Page', 'repeaters-relationships-connector-acf-elementor' ),
     121                'current_post' => \__( 'Current Post/Page/Term/Author', 'repeaters-relationships-connector-acf-elementor' ),
    122122            ];
    123123            if ( \function_exists( 'acf_get_options_pages' ) ) {
  • repeaters-relationships-connector-acf-elementor/tags/1.2.0/readme.txt

    r3458317 r3472143  
    33Requires at least: 5.8
    44Tested up to: 6.8
    5 Stable tag: 1.1.1
     5Stable tag: 1.2.0
    66Requires PHP: 7.4
    77License: GPLv2 or later
     
    2121*   **Repeater Sub-Field Tag:** A dedicated dynamic tag to easily pull and display data (text, images, etc.) from any sub-field within your repeater.
    2222*   **Relationship Sub-Field Tag:** A dynamic tag to display data from the related posts, such as the post title, content, featured image, and permalink.
     23*   **Taxonomy Archive Support:** Use ACF Repeater and Relationship fields on category, tag, and custom taxonomy archive templates.
     24*   **Author Archive Support:** Use ACF Repeater and Relationship fields on author archive templates.
    2325
    2426== Requirements ==
     
    6870Yes! When you select "ACF Repeater" or "ACF Relationship" as your source, a "Data Source" dropdown appears. It lists "Current Post/Page" (the default) along with any registered ACF Options Pages. Select the options page that contains your field, then choose the field name as usual.
    6971
     72**Does this work on category/taxonomy archive templates?**
     73Yes! As of version 1.2.0, the plugin automatically detects taxonomy archive contexts (categories, tags, and custom taxonomies). When you place a Loop Grid on an archive template with an ACF Repeater or Relationship source set to "Current Post/Page/Term", the plugin will pull field data from the current taxonomy term.
     74
     75**Does this work on author archive templates?**
     76Yes! As of version 1.2.0, the plugin automatically detects author archive contexts. When you place a Loop Grid on an archive template with an ACF Repeater or Relationship source set to "Current Post/Page/Term/Author", the plugin will pull field data from the current author.
     77
    7078**Why isn't my ACF field showing up in the dropdown?**
    7179The dropdowns in the Loop Grid query settings only show fields that are available on the specific post or page you are currently editing with Elementor. Ensure that the post has a value saved for the ACF field you are trying to select.
     
    8189== Changelog ==
    8290
     91= 1.2.0 =
     92* Added taxonomy archive template support. ACF Repeater and Relationship fields now work on category, tag, and custom taxonomy archive templates.
     93* Added author archive template support. ACF Repeater and Relationship fields now work on author archive templates.
     94
    8395= 1.1.1 =
    8496* Bumping version to get it to show up in the WordPress plugin directory.
  • repeaters-relationships-connector-acf-elementor/tags/1.2.0/repeaters-relationships-connector-acf-elementor.php

    r3458317 r3472143  
    33 * Plugin Name:Repeaters & Relationships Connector with ACF for Elementor
    44 * Description: Allows Elementor Loop Grids to use ACF Repeaters and Relationships as a data source.
    5  * Version: 1.1.1
     5 * Version: 1.2.0
    66 * Author: Solid Digital
    77 * Author URI: https://www.soliddigital.com
  • repeaters-relationships-connector-acf-elementor/trunk/includes/modify_query_results.php

    r3457626 r3472143  
    55if ( ! \defined( 'ABSPATH' ) ) {
    66    exit; // Exit if accessed directly.
     7}
     8
     9/**
     10 * Resolves the current context ID for ACF field lookups.
     11 *
     12 * On taxonomy archives, returns the ACF-formatted '{taxonomy}_{term_id}' string.
     13 * On singular posts/pages, falls back to get_the_ID().
     14 *
     15 * @return int|string The post ID or ACF-formatted term identifier.
     16 */
     17function resolve_current_context_id() {
     18    $queried_object = \get_queried_object();
     19    if ( $queried_object instanceof \WP_Term ) {
     20        return $queried_object->taxonomy . '_' . $queried_object->term_id;
     21    }
     22    if ( $queried_object instanceof \WP_User ) {
     23        return 'user_' . $queried_object->ID;
     24    }
     25    return \get_the_ID();
    726}
    827
     
    1736    $data_source = $widget->get_settings( 'post_query_acf_data_source' );
    1837    if ( empty( $data_source ) || 'current_post' === $data_source ) {
    19         return \get_the_ID();
     38        return resolve_current_context_id();
    2039    }
    2140    return $data_source;
  • repeaters-relationships-connector-acf-elementor/trunk/includes/register_controls.php

    r3457626 r3472143  
    119119        private function get_acf_data_source_options() {
    120120            $options = [
    121                 'current_post' => \__( 'Current Post/Page', 'repeaters-relationships-connector-acf-elementor' ),
     121                'current_post' => \__( 'Current Post/Page/Term/Author', 'repeaters-relationships-connector-acf-elementor' ),
    122122            ];
    123123            if ( \function_exists( 'acf_get_options_pages' ) ) {
  • repeaters-relationships-connector-acf-elementor/trunk/readme.txt

    r3458317 r3472143  
    33Requires at least: 5.8
    44Tested up to: 6.8
    5 Stable tag: 1.1.1
     5Stable tag: 1.2.0
    66Requires PHP: 7.4
    77License: GPLv2 or later
     
    2121*   **Repeater Sub-Field Tag:** A dedicated dynamic tag to easily pull and display data (text, images, etc.) from any sub-field within your repeater.
    2222*   **Relationship Sub-Field Tag:** A dynamic tag to display data from the related posts, such as the post title, content, featured image, and permalink.
     23*   **Taxonomy Archive Support:** Use ACF Repeater and Relationship fields on category, tag, and custom taxonomy archive templates.
     24*   **Author Archive Support:** Use ACF Repeater and Relationship fields on author archive templates.
    2325
    2426== Requirements ==
     
    6870Yes! When you select "ACF Repeater" or "ACF Relationship" as your source, a "Data Source" dropdown appears. It lists "Current Post/Page" (the default) along with any registered ACF Options Pages. Select the options page that contains your field, then choose the field name as usual.
    6971
     72**Does this work on category/taxonomy archive templates?**
     73Yes! As of version 1.2.0, the plugin automatically detects taxonomy archive contexts (categories, tags, and custom taxonomies). When you place a Loop Grid on an archive template with an ACF Repeater or Relationship source set to "Current Post/Page/Term", the plugin will pull field data from the current taxonomy term.
     74
     75**Does this work on author archive templates?**
     76Yes! As of version 1.2.0, the plugin automatically detects author archive contexts. When you place a Loop Grid on an archive template with an ACF Repeater or Relationship source set to "Current Post/Page/Term/Author", the plugin will pull field data from the current author.
     77
    7078**Why isn't my ACF field showing up in the dropdown?**
    7179The dropdowns in the Loop Grid query settings only show fields that are available on the specific post or page you are currently editing with Elementor. Ensure that the post has a value saved for the ACF field you are trying to select.
     
    8189== Changelog ==
    8290
     91= 1.2.0 =
     92* Added taxonomy archive template support. ACF Repeater and Relationship fields now work on category, tag, and custom taxonomy archive templates.
     93* Added author archive template support. ACF Repeater and Relationship fields now work on author archive templates.
     94
    8395= 1.1.1 =
    8496* Bumping version to get it to show up in the WordPress plugin directory.
  • repeaters-relationships-connector-acf-elementor/trunk/repeaters-relationships-connector-acf-elementor.php

    r3458317 r3472143  
    33 * Plugin Name:Repeaters & Relationships Connector with ACF for Elementor
    44 * Description: Allows Elementor Loop Grids to use ACF Repeaters and Relationships as a data source.
    5  * Version: 1.1.1
     5 * Version: 1.2.0
    66 * Author: Solid Digital
    77 * Author URI: https://www.soliddigital.com
Note: See TracChangeset for help on using the changeset viewer.