ID); /* save the page id */
$mccq_page->the_post();
$number_of_columns = 1;
$posts_above_the_column = 0;
$mccq_args = 'post_status=publish';
$show_page_title = 'no';
$show_page_text = 'no';
$custom_fields = get_post_custom($post->ID);
$bfa_pagetemplate_name = 'template_multi_column_custom_query.php';
$bfa_pagetemplate_name = 'rgh-ember-cat.php';
$number_of_full_posts = 0;
// -------------------------------------------------------------------------
// get the custom query
// -------------------------------------------------------------------------
$xpageid = get_the_id(); // this gets the ID # of the current page
$my_slider_field = get_post_meta($xpageid, 'slider_cat', true); // gets the value of the slider_cat custom field
// gets the value of the custom_query field from the page
$my_custom_field = $custom_fields['custom_query'];
if (is_array($my_custom_field)) {
foreach ( $my_custom_field as $key => $value ) {
if ($key == 'custom_query') {$mccq_args= $value; }
}
// -------------------------------------------------------------------------
// get the show_page_title
// -------------------------------------------------------------------------
$my_custom_field = $custom_fields['show_page_title'];
if (is_array($my_custom_field)) {
foreach ( $my_custom_field as $key => $value ) {
if ($key == 'show_page_title') {
$show_page_title = strtolower($value);
if (($show_page_title != 'yes') AND ($show_page_title != 'no')) { ?>
Warning: your value for 'show_page_title' on page '' must be 'yes' or 'no' - please edit the page and set the value correctly
$value ) {
if ($key == 'number_of_full_posts') {
$number_of_full_posts = strtolower($value);
if ((!is_numeric($number_of_full_posts)) OR ($number_of_full_posts < 0)) { ?>
Warning: your value for 'number_of_full_posts' on page '' is not numeric or is a negative number - please edit the page and set the value correctly
$value ) {
if ($key == 'show_page_text') {
$show_page_text = strtolower($value);
if (($show_page_text != 'yes') AND ($show_page_text != 'no')) { ?>
Warning: your value for 'show_page_text' on page '' must be 'yes' or 'no' - please edit the page and set the value correctly
$value ) {
if ($key == 'posts_above_the_column') {
$posts_above_the_column = $value;
if ((!is_numeric($posts_above_the_column)) OR ($posts_above_the_column < 1)) { ?>
Warning: your value for 'posts_above_the_column' on page '' is not numeric or is a negative number - please edit the page and set the value correctly
$value ) {
if ($key == 'number_of_columns') {
$number_of_columns = $value;
if ((!is_numeric($number_of_columns)) OR ($number_of_columns < 1)) { ?>
Warning: your value for 'number_of_columns' on page '' is not numeric or is less than 1 - please edit the page and set the value correctly
','');
bfa_post_headline('
Next/Previous Navigation ?>
id="post-">
'); ?>
',''); ?>
',''); ?>
'.__('Pages:','atahualpa').'',''); ?>
',''); ?>
',' '); ?>
',' |
$number_of_columns) {
echo "";
$column_cnt=1;
} ?>