Beispiel #1
0
/**
 * Return a number of duplicate field 
 * 
 */
function get_count_field($field_name, $group_index = 1, $post_id = NULL)
{
    global $post;
    if (!$post_id) {
        $post_id = $post->ID;
    }
    $total = get_order_field($field_name, $group_index, $post_id);
    return count($total);
}
Beispiel #2
0
				<td colspan="2"><?php 
get_template_field();
?>
</td>
			</tr>
			<tr class="row-1">
				<td><?php 
get_limit_field();
?>
</td>
				<td><?php 
get_nav_field();
?>
</td>
				<td><?php 
get_order_field();
?>
</td>
				<td colspan="2"><?php 
get_sort_field();
?>
</td>
			</tr>
			<tr>
				<td  class="row-1" colspan="1">
				<?php 
show_if_not_headline();
?>
				</td>
			</tr>
			<tbody>
		<?php 
//Print the formatted table of contents for the post
if (function_exists('wptopc')) {
    wptopc();
}
?>
			</div>
	<div class="widget col-md-12 col-sm-6 col-xs-12">
		<h2 class="widget-title">About This Publication</h2>
			<p><?php 
// display description custom field
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'pub_description', true) . "<br/>";
//get the partner logos
$hams = get_order_field('partner_logos');
//name of the field
foreach ($hams as $logos) {
    //loop the container with a new variable
    echo get_image('partner_logos', 1, $logos) . "<br/>";
}
wp_reset_query();
?>
						</p>
		</div>

		<div class="widget col-md-12 col-sm-6 col-xs-12">
			<h2 class="widget-title">Get the Report</h2>
					<?php 
createDownloadLink('<span class="glyphicon glyphicon-file"></span> Download PDF');
?>