Support

Account

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!