Support

Account

Home Forums Front-end Issues Customising a post Reply To: Customising a post

  • Part of this is outside of ACF and that’s having a template for a post in a specific category. For this you should take a look at https://codex.wordpress.org/Function_Reference/wp_get_post_categories and https://codex.wordpress.org/Function_Reference/get_template_part. Basically you need to see what category your post is in and then either get a standard content template or a separate content template based on that.

    I would probably use a custom post type instead, https://codex.wordpress.org/Post_Types

    As far as showing the label and the value of a field, this is the basics

    
    $value = get_field('field_name');
    $field = get_field_object('field_name');
    echo $field['label'],': ',$value;