/** * Filter <title> tag to be friendly * * An SEO plugin can be used to fine-tune the <title> for various areas of the site. * * Deprecation: add_theme_support( 'title-tag' ) in WordPress 4.1 handles this nicely. * * @since 0.9 * @deprecated 1.7.3 * @param string $title Page title determined by WordPress core * @param string $sep Optional, default is '»'. How to separate the various items within the page title. * @param string $seplocation Optional. Direction to display title, 'right'. * @return string Formatted title */ function ctfw_head_title($title, $sep, $seplocation) { $new_title = $title; if (current_theme_supports('ctfw-auto-title')) { _deprecated_function(__FUNCTION__, '1.7.3', "add_theme_support( 'title-tag' )"); // Feed if (is_feed()) { return $title; } // Page number $page_number = ''; $page = ctfw_page_num(); if ($page > 1) { /* translators: page number in <title> */ $page_number = sprintf(_x(' (Page %d)', 'head title', 'church-theme-framework'), $page); } // Homepage (site name - tagline ) if (is_front_page()) { $before = get_bloginfo('name', 'display'); $after = $page <= 1 ? get_bloginfo('description', 'display') : ''; // show tagline if on first page (not showing page number) } else { $before = $title; $after = get_bloginfo('name'); } // Build title $before = trim($before) . $page_number; $after = trim($after); $new_title = $before; if ($after) { /* translators: separator for <title> content */ $new_title .= _x(' - ', 'head title', 'church-theme-framework') . $after; } } return $new_title; }
function rcumc_status_report_default_content() { $args = array('post_type' => RCUMC_Status_Report::TYPE_NAME, 'posts_per_page' => 8, 'paged' => ctfw_page_num(), 'post_status' => 'publish', 'order' => 'DESC', 'orderby' => 'meta_value_num', 'meta_key' => RCUMC_Status_Report_Fields::DUE_DATE); return rcumc_status_report_query_orderby_last_and_first_name($args); }
function rcumc_publications_loop_after_content() { return new WP_Query(array('post_type' => 'rcumc_publications', 'paged' => ctfw_page_num())); }
function exodus_sermons_loop_after_content() { $args = array('post_type' => 'ctc_sermon', 'paged' => ctfw_page_num(), 'posts_per_page' => 6, 'meta_key' => 'service_date', 'orderby' => 'meta_value_num', 'order' => 'DESC'); return new WP_Query($args); }