Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Insert element block using dynamic id

  • Hi,
    I see the elements and it’s being working fine, at least the non dynamic content.
    I send you how the static content is showed.

    I send as link because is not working for me:

    Image 1


    Image 2

  • I think it’s how admin-ajax.php handles the request. I don’t think it can fire that hook as it happens outside of the template execution.

    I am not knowledgeable with Ajax ( as you can probably tell 🙂 ) – it may require a template to be output inside that loop instead and within that template make the hook callback.

    Unfortunately theres not much else I can advise

  • Hi david,
    thanks for your help. Apparently it’s quite tricky use dynamic id in the hook.

    I’ll think about new strategies.

    Thanks.

  • Let us know if you find a solution!

Viewing 4 posts - 17 through 20 (of 20 total)
  • You must be logged in to reply to this topic.