Support

Account

Home Forums General Issues Views Counter Field Reply To: Views Counter Field

  • Here is the Loop page that contains the code:

    <?php
    global $qode_options_elision;
    
    ?>
    <style>
    .icon_whitepaper.brospec:before {
        background-image: url(/wp-content/uploads/2019/10/brospec.png);
        height: 89px;
    }
    </style>
    <?php
    $pdf_doc = get_field( 'bro-spec-pdf', $post->ID );
    $pdf_url = $pdf_doc[ 'url' ];
    $pdf_name = $pdf_doc[ 'filename' ];
    ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="post_content_holder icon_whitepaper brospec">
        <div class="post_text">
          <h2><a href="<?php echo $pdf_url; ?>" title="<?php the_title_attribute(); ?>" id="brospec-link" class="brospec-link" target="_blank">
            <?php the_title(); ?>
            </a></h2>
          <?php the_excerpt(); ?>
          <div class="posted-readmore"> 
              <span style="font-weight:bold;"><?php
              $terms = get_the_terms( $post->ID, 'brochure_category' );
              foreach ( $terms as $term ) {
                echo $term->name;
              }
              ?></span>,
              Posted <span class="date">
            <?php the_time('F j, Y'); ?>
            </span> | <a href="<?php echo $pdf_url; ?>" id="brospec-link" title="<?php the_title_attribute(); ?>" class="brospec-link" target="_blank">
            <?php _e('DOWNLOAD','qode'); ?>
            </a>
        </div>
      </div>
    </article>
    <!-- #download-<?php the_ID(); ?> -->