Want to create a summary list of a specific field in custom post type

I have a custom post type where in admin panel there is a field where text and URL for a resource can be entered. Multiple can be entered… The code looks like this:


    <?php
    if( have_rows(‘additional_resources’) ):
    while ( have_rows(‘additional_resources’) ) : the_row(); ?>
  • <?php the_sub_field('url'); ?>

  • <?php endwhile;
    endif; ?>

Visually looks like this:
additionalresources-input

So now we want to have a separate Resources Summary Page that will show a summary list of ALL the resources that were entered from all the custom posts.

I have the following code that will give me a list of all the post titles, but how do I include a list of all the resource links from the ‘additional_resources’
<?php
$args = array(
‘post_type’ => ‘beginning-video’,
‘posts_per_page’ => -1,
‘orderby’ => ‘title’,
‘order’ => ‘asc’,
‘paged’ => ( get_query_var(‘paged’) ? get_query_var(‘paged’) : 1),
);
query_posts($args);
while(have_posts()): the_post(); ?>

<?php the_title(); ?>


<?php endwhile; ?>

Thanks for your help! Newbie here…

Do not make duplicate posts.

Sponsor our Newsletter | Privacy Policy | Terms of Service