Example #1
0
get_the_ID();
?>
" <?php 
post_class('entry homepage');
?>
 aria-labelledby="entry__header" role="article">
    <div class="row">
      <section class="entry__profile-image col__1-2">
        <?php 
get_template_part('template-parts/partials/thumbnail');
?>
      </section>
      <section class="entry__content col__1-2">
        <?php 
if (function_exists('dfw_page_title')) {
    dfw_page_title('Diana Duke Duncan');
}
?>
        <?php 
if (have_posts()) {
    while (have_posts()) {
        $ddd_btn_about_text = dfw_get_field('ddd_btn_about_text');
        $ddd_btn_about_link = dfw_get_field('ddd_btn_about_link');
        the_post();
        the_content();
        ?>
            <div class="button__one">
              <a href="<?php 
        echo $ddd_btn_about_link;
        ?>
">
<?php

/*
Template Name: Case Studies
*/
get_header();
get_template_part('template-parts/partials/menu');
?>
<div class="content__wrapper top">
  <?php 
if (function_exists('dfw_page_title')) {
    dfw_page_title();
}
$case_study_query = new WP_Query(array('post_type' => 'casestudies', 'paged' => $paged));
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$tmp_query = $wp_query;
$wp_query = null;
$wp_query = $case_study_query;
if (have_posts()) {
    while ($case_study_query->have_posts()) {
        $case_study_query->the_post();
        $even_odd = $case_study_query->current_post % 2 == 0 ? 'odd' : 'even';
        ?>
      <article id="entry-<?php 
        get_the_ID();
        ?>
" <?php 
        post_class('row entry case_study listing ' . $even_odd);
        ?>
 aria-labelledby="entry__header" role="article">
        <div class="content__wrapper">
Example #3
0
<div class="content__wrapper">
  <article id="entry-<?php 
get_the_ID();
?>
" <?php 
post_class('entry');
?>
 aria-labelledby="entry__header" role="article">
    <?php 
if (function_exists('dfw_page_title')) {
    dfw_page_title('Nothing Found!');
}
?>
    <section class="entry__content">
      <?php 
if (is_home() && current_user_can('publish_posts')) {
    ?>
        <p><?php 
    printf(esc_html__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'dfw'), esc_url(admin_url('post-new.php')));
    ?>
</p>
      <?php 
} elseif (is_search()) {
    ?>
        <p><?php 
    esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'dfw');
    ?>
</p>
        <?php 
    get_search_form();
    ?>