Support

Account

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

  • I will extend this to make it more clear.

    I have 10 custom post types.
    Slide-01
    Slide-02
    Slide-03
    Slide-04
    Slide-05
    And so on.

    Each custom post type has its unique custom fields.

    Slide-01
    – Photo 1
    – Photo 2
    – Photo 3
    – Title
    – Sub Title

    Slide-02
    – Photo 1
    – Photo 2
    – Photo 3
    – Title
    – Sub Title

    Slide-03
    – Photo 1
    – Photo 2
    – Photo 3
    – Title
    – Sub Title

    And so on.

    I will display the 30 images, titles, subtitles, etc… in a single page template as a gallery.

    I will add the content in each custom post type. If I need to change Slide-01 photo 2, I just go to Slide-02 and change photo 2.

    I am not being able to display anything in my page. The only way it works is if I enable things in the page itself, instead of my custom post types. Having to edit 1 single page with 254 fields is not an option, it has to be using the 10 different custom post types, one for each slide.

    How can I make this work so all the content is only added in the custom post types and I can use everything in a single page and calling each element where needed.

    For example:

    <?php the_field('slide_01_title'); ?>
    <?php the_field('slide_01_photo_01'); ?>
    <?php the_field('slide_04_subtitle'); ?>

    And so on. I will place and call each item individually exactly where I need it.

    Can someone please share an example code where I can start and understand how to use it outside the page itself?

    Thanks.