• Resolved Phil

    (@imatoni)


    Hello,

    I refer to this post:
    https://www.ads-software.com/support/topic/not-taking-acf-field-heading/

    Unfortunately, the topic is closed, so I open a new thread.

    I have exactly the same problem. My custom ACF block looks something like this:
    <! — wp:acf/headline-double {“id”:”block_60ca01a32e8fc”,”name”:”acf/headline-double”,”data”:{“field_606eb8940bacb”:”Headline part 1″,”field_60c9d25af528e”: “0”,”field_606eb8e00bacc”:”Headline part 2″,”field_606eb90c0bacd”:”1″,”field_60defcb33ccd8″:”h2″},”align”:””,”mode”:”preview”} /–>

    The value next to field_60defcb33ccd8 gives the tag, which is definable by the ACF field itself.

    Is there a hook via which you can influence the generation of the headlines in the TOC plugin? Maybe I can create the necessary code myself.

    By the way, I noticed that the ACF blocks are recognized correctly when a regular headline is included. I find this a bit opaque, but funny it is.

    Thanks for any help

    Translated with https://www.DeepL.com/Translator (free version)

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

    (@shazahm1hotmailcom)

    The TOC is generated from actual heading tags, such as h1, h2, h3, etc. text styled as “heading” will not be parsed as TOC items.

    If the ACF is rendering an actual heading tag, then it is likely that the ACF block is being rendered to the page content after the ezTOC has already parsed the page content for headings.

    Thread Starter Phil

    (@imatoni)

    Ok, that makes sense.

    Do you have any idea how i could control, that the acf markup creation will be performed BEFORE the TOC plugin does it’s work?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook to identify ACF Blocks by custom code’ is closed to new replies.