tag based on what is being viewed. * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. */ function aglee_lite_wp_title( $aglee_lite_title, $aglee_lite_sep ) { if ( is_feed() ) { return $aglee_lite_title; } global $page, $paged; // Add the blog name. $aglee_lite_title .= get_bloginfo( 'name', 'display' ); // Add the blog description for the home/front page. $aglee_lite_site_description = get_bloginfo( 'description', 'display' ); if ( $aglee_lite_site_description && ( is_home() || is_front_page() ) ) { $aglee_lite_title .= " $aglee_lite_sep $aglee_lite_site_description"; } // Add a page number if necessary. if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $aglee_lite_title .= " $aglee_lite_sep " . sprintf( esc_html__( 'Page %s', 'aglee-lite' ), max( $paged, $page ) ); } return $aglee_lite_title; } add_filter( 'wp_title', 'aglee_lite_wp_title', 10, 2 ); /** * Title shim for sites older than WordPress 4.1. * * @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/ * @todo Remove this function when WordPress 4.3 is released. */ function aglee_lite_render_title() { ?> <?php wp_title( '|', true, 'right' ); ?> '; foreach($aglee_lite_result as $aglee_lite_rowslide){ $aglee_lite_image = wp_get_attachment_image_src( get_post_thumbnail_id( $aglee_lite_rowslide ), 'aglee-lite-home-slider', false ); $aglee_lite_content_post = get_post($aglee_lite_rowslide); ?>
  • post_title; ?>
    post_excerpt; ?>
  • '; } if($aglee_lite_slider_select == 'option2'){ echo '