Home › Forums › Add-ons › Repeater Field › Split & Move Field Group › Reply To: Split & Move Field Group
Hi.
sorry for the late reply.
I am using a custom post type (just one post) to enter all the info for the table of contents. Then in my template I am pulling the entered info from that particular post using the post number like this:
<?php
if( get_field('repeater', 128) )
{
$i = 1;
while( has_sub_field('repeater', 128) )
{
$link = get_sub_field('sub_field_1');
$desc = get_sub_field('sub_field_2');
echo ...
$i++;
}
}
?>
Because the single post where I am entering the info is getting so big, I want to instead create a custom post type for each section of the table of contents. I can easily do this for new stuff that I need to add, but the stuff that I have already added I would like to move some of the entered info to a new post type.
I am using a post type just so it’s easier later to see where the info needs to be entered.
Sorry for my poor explaining, let me know if I’m still not making sense. Thanks!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.