Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1484549

    Okay, so I must be doing something stupidly wrong.

    I have an ACF-based Custom Post Type of FAQs, a Taxonomy of FAQ Categories, and a Field Set of FAQs Fields

    My goal was to have an accordion that had a toggle that was of the question, and then the answer displayed in the Accordion Content section.

    I set the Accordion Toggle to the correct ACF field, using the ACF drop-down in the accordion panel.
    I then put the Answer field within the body content of the Accordion content field.

    What I get is a strange string in the Toggle and a strange string in the content with the Answer showing up after. It looks like it might just be a formatting error with quotes, but not sure the proper way to set it up, as I am trying to automate the creation of these.

    What is the best approach as you look at this and think scalability?

    #1484627

    Hey Jason,
    Thanks for your patience, in the title when you see [av_dynamic_el this looks like the ACF code with the “{” mark is braking the ALB element shortcode, I tested without the ACF code in the title field in the first link below and the ACF code for the answer in the content field which worked. Below the accordion panel I tested both ACF codes which also worked:
    Screen Shot 2025 05 24 at 5.25.03 PM
    I don’t know the cause for this, but I found that the ACF code could be used in the title if the element shortcode is not used, but use the element HTML instead. See link 2 below:
    Screen Shot 2025 05 24 at 5.30.00 PM
    frontend:
    Screen Shot 2025 05 24 at 5.35.53 PM

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.