Home Forums Front-end Issues Nothing Displays on Frontend Reply To: Nothing Displays on Frontend

  • Thank you John, that is exactly my question.

    How can I get all the custom fields created under the 10 custom post types to use any of them in my template.

    10 custom post types
    Inside each one of them 6 custom fields.

    So I have 60 custom fields.

    I have 1 page only and I use it with my only template an index.php

    I need something like this:

    <?php get_header(); ?>
    <div class="one"><?php the_field('slide_01_title'); ?></div>
    <div class="two"><?php the_field('slide_01_photo_01'); ?></div>
    <div class="three"><?php the_field('slide_04_subtitle'); ?></div>
    <div class="four"><?php the_field('slide_08_title'); ?></div>
    <div class="five"><?php the_field('slide_06_photo_03'); ?></div>
    <div class="six"><?php the_field('slide_06_photo_02'); ?></div>
    <div class="seven"><?php the_field('slide_03_subtitle'); ?></div>
    <div class="eight"><?php the_field('slide_02_photo_01'); ?></div>
    <div class="nine"><?php the_field('slide_07_photo_01'); ?></div>
    <div class="ten"><?php the_field('slide_02_photo_03'); ?></div>
    <?php get_footer(); ?>

    So I can have in any div I decide, any custom field from the 60 ones that exist in different custom post types.

    More clear?

    Thanks for your help.