Support

Account

Home Forums General Issues Create automatically a new page for ACF Repeater

Helping

Create automatically a new page for ACF Repeater

  • Hi,

    is there a way to create automatically a new page for every row in the ACF Repeater? I’m thinking to buy this plugin, but I need to know first, if there is a way to realize it. Thanks!

  • Yes, this could be done.

    You can create an acf/save_post function and in this function read through the repeater values and create a new post for each row using the standard WP function wp_insert_post().

    Or you could alternately test to see if the post exists and update it or created it based on that information.

    The latter would probably be a better choice or you’ll be creating duplicate posts every time someone updates a post that has your repeater on it.

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

The topic ‘Create automatically a new page for ACF Repeater’ is closed to new replies.