• Resolved Julien

    (@juju81)


    Hi,

    I am using Blocksy theme and ACF. Blocksy has an option to build a single post and an archive template.

    I have done my archive template, and now I would like to dynamically display an ACF gallery from a custom post type into my single post template.

    Is there a way to do it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Julien

    (@juju81)

    Hi,

    Finally my problem is solved. I tried several times and now it is working, so I was doing something wrongly, I don’t know what exactly but it works.

    Thread Starter Julien

    (@juju81)

    Hi,

    Just to update about my issue. I finally find out my issue is happening when using the Blocksy theme single template builder. No issue if creating a single post, using a reusable block. However, when using single template builder to make a template for custom post type, I got an error message:
    Warning: implode(): Invalid arguments passed in snippet-ops.php(484) : eval()’d code on line 4
    The code is from the Meow Gallery tutorial for ACF and line 4 is this one: $ids = implode( ‘,’, $gallery_id_array );

    I searched a fix online and I modified line 4 using (array) as suggested on a post on Stack Overflow forum: $ids = implode( ‘,’, (array)$gallery_id_array );
    With this, the error message is gone, but my code skills are close to 0 so I cannot tell more about it, I just tried and the error message is gone.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display ACF gallery with Meow?’ is closed to new replies.