• Resolved bokibe

    (@bokibe)


    Hi,
    I have a CPT called event (short description with fields like date, location,…)
    The I have a (standard) post with a detailed version of the event but without date, location, …
    Many events can call the detailed page.
    Now I want to show the detailed post with field values from the event that called the detail page (maybe based on an id in the URL …/?id=123).
    There is no relation between the 2 posts.

    Is this possible?
    Thanks in advance.


    • This topic was modified 2 months, 1 week ago by bokibe.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gamaup

    (@gamaup)

    Hi,

    Thanks for the detailed explanation. That helps a lot.

    In this case, Blocks for ACF Fields is not able to handle this setup. The plugin can only display ACF field values from the current WordPress context (the post, page, or template being rendered). It does not support switching the field source dynamically based on a URL parameter such as ?id=123.

    However, there is an alternative approach that works well and is fully supported.

    You can add an ACF Post Object field to your Event post type and use it to select the detailed post. This creates an explicit relationship between the event and its detailed page.

    Then, on the event detail layout, you can:

    1. Insert the ACF Field block
    2. Select the Post Object field and set the display type to List (this will create a post loop)
    3. Inside the loop, insert another block to load the post content

    This setup will display the selected detailed post directly inside the Event layout, allowing each event to control which detailed content is shown. Please note that displaying Post Object fields as a List is available in the PRO version of this plugin.

    I hope this helps, and let me know if you have any questions about setting this up.

    Thread Starter bokibe

    (@bokibe)

    Thank you very much for your quick and detailed answer 🙏🏼.
    I will try this setup soon and probably I will have some more question.
    👍🏼

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.