Exemplo n.º 1
0
        ?>
" alt="<?php 
        the_title();
        ?>
 image" title="<?php 
        the_title();
        ?>
"/>
                    </div>
                    <h2><?php 
        the_title();
        ?>
</h2>
                    <p>
                        <?php 
        echo custom_field_excerpt();
        ?>
                    </p>
                </div>
            </a>
        </div>
    <?php 
    }
} else {
    ?>
        <p class="col-xs-12">Sorry, no posts matched your criteria.</p>
    <?php 
}
?>
</div>
</main>
									<h6 class="latestnews__post-title"><?php 
            echo get_the_title();
            ?>
</h6>
								</a>

								<?php 
            if (get_field('article_content')) {
                ?>

									<p class="latestnews__post-excerpt text--small">
										<?php 
                // echo get_field('article_content');
                ?>
										<?php 
                echo custom_field_excerpt('article_content');
                ?>
									</p>
								
								<?php 
            }
            ?>

								<a href="<?php 
            echo get_permalink();
            ?>
" title="<?php 
            echo get_the_title();
            ?>
" class="latestnews__post-button btn btn--blue">Read More</a>
							
Exemplo n.º 3
0
        the_post();
        ?>
						<article class="post">
							<h1>
								<a href="<?php 
        the_permalink();
        ?>
">
									<?php 
        the_title();
        ?>
								</a>
							</h1>
							<?php 
        if (get_field('content')) {
            echo custom_field_excerpt('content');
            // More info in functions.php
        } else {
            the_excerpt();
        }
        ?>
						</article>
					<?php 
    }
    ?>
				</div>
			</article>
			<?php 
} else {
    ?>
			<article class="g three-quarters post">
Exemplo n.º 4
0
    while (have_posts()) {
        the_post();
        ?>

          <div class="page-header">
            <h1><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h1>
          </div>
          
          <?php 
        echo custom_field_excerpt('three_column_left');
        ?>
          <?php 
        echo custom_field_excerpt_lefthome('left_column_home');
        ?>
          <?php 
        echo custom_field_excerpt_middle('three_column_middle');
        ?>
          <?php 
        echo custom_field_excerpt_middlehome('middle_column_home');
        ?>
          <?php 
        echo custom_field_excerpt_right('three_column_right');
        ?>
          <?php 
        echo custom_field_excerpt_righthome('right_column_home');
        ?>
 - <?php 
        the_field('end_time');
        ?>
                </div>
              <?php 
    }
    ?>
            </div>
            <hr>
            <?php 
    $description = get_field('description');
    $excerpt = apply_filters('the_excerpt', $description);
    ?>
            <p><?php 
    echo custom_field_excerpt('description');
    ?>
</p>
          </div>
          <div class="buttons waypoint waypoint-bottom-to-top">
            <a href="<?php 
    the_permalink();
    ?>
" class="linked-button linked-button-dark">More Info</a>
            <?php 
    if (get_field('where_to_but_tickets') == "Buy Tickets on This Site") {
        $registration_link = get_field('tickets_product_link');
        $registration_product_id = url_to_postid($registration_link);
        $ajax_add_to_cart = true;
    } else {
        $registration_link = get_field('website');