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(); ?> -->
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.