• On the For Our Staff page of my website, I tried to edit the HTML coding and now the page is broken. Below is the coding I have. Can anyone tell me what is wrong with it?

    <?php

    /*

    Template Name: ForStaff

    */
    the_post();
    get_header(); ?>

    <div id
    <?php
    the_content()attachments_group = get_field(‘attachments_group’);

    if (! post_password_required(get_the_ID())) { ?>

    <div>
    <?php $;
    for($i = 0; $i < count($attachments_group); $i++) : ?>
    <div class=”accordion”>
    <h3><?php echo $attachments_group[$i][‘staff_resource_category’]; ?></h3>
    <div class=”resource”>
    <?php $files = $attachments_group[$i][‘files’];
    for($j = 0; $j < count($files); $j++) :
    $file = $attachments_group[$i][‘files’][$j][‘file’];

    if($file != ”) :

  • The topic ‘Messed up the coding in my template!’ is closed to new replies.