Пример #1
0
<?php

get_header();
if (have_posts()) {
    ?>
  <?php 
    while (have_posts()) {
        the_post();
        ?>
    <article class="projet">
      <div class="content">
        <?php 
        the_content();
        ?>
      	<!-- 
		<?php 
        tablepress_print_table(array('id' => '2', 'use_datatables' => true, 'print_name' => true, 'cache_table_output=false'));
        ?>
		 -->
		</div>
    </article>
  <?php 
    }
}
get_footer();
Пример #2
0
        <div class="archive-head">
            <?php 
    echo '<h1>' . __('Our Blog', 'afford') . '</h1>';
    ?>
        </div>
        <div class="archive-description">
        </div>
    </div><!-- Archive Meta Container ends -->
<?php 
}
?>

<div id="content-section" class="content-section blog-page grid-col-16">
    <div id="datatable-master-table">
      <?php 
tablepress_print_table(array('id' => '25', 'use_datatables' => true, 'print_name' => false));
?>
    </div>
    <div class="inner-content-section grid-pct-65">
        
            <?php 
if (have_posts()) {
    ?>
            

                    <div class="loop-container-section clearfix">
                    
                    <?php 
    // Here starts the loop
    while (have_posts()) {
        the_post();
Пример #3
0
                         <?php 
        the_content();
        ?>
                         <?php 
        $post_obj = get_field('tablepress');
        // get the post-table pair json data
        $table_json = get_option('tablepress_tables');
        // json decode to array
        $json_dec = json_decode($table_json, true);
        // get the pair data
        $post_table = $json_dec['table_post'];
        // flip the key/value of the array
        $flip = array_flip($post_table);
        ?>
                         <?php 
        tablepress_print_table(array('id' => $flip[$post_obj->ID], 'use_datatables' => true, 'print_name' => false, 'datatables_buttons' => 'colvis,copy,csv,excel,pdf,print'));
        ?>
                         <p><strong>Source:</strong><?php 
        echo get_field('source');
        ?>
</p>
                         <p><strong>Credit:</strong><?php 
        echo get_field('credit');
        ?>
</p>
                         <p><strong>License:</strong><?php 
        echo get_field('license');
        ?>
</p>
                         <p><strong>Notes:</strong><?php 
        echo get_field('notes');