WordPress.org

Forums

[Plugin: Advanced Custom Fields] Two types of fields (1 post)

  1. Madern
    Member
    Posted 1 year ago #

    Hi! I've got another problem. I'm using ACF plugin and also Single Post Template plugin, so I create single-film.php and single-game.php and inside of these files I put some code like that:

    <b>Duration:</b> <?php the_field('duration'); ?><br />

    And it show film duration when I use "Film" template

    Film contains only fields from "Films" category for ex. country, year, duration etc. and Game contains price,studio, etc. Everything works fine, I choose what template I want to use and it works.

    But what can I do to make archive page recognize what category of fields I want to show ?
    Please help me :<

Topic Closed

This topic has been closed to new replies.

About this Topic