urlencode( 'Lato:400,700,400italic,700italic,900' ), 'subset' => urlencode( 'latin,latin-ext' ), ), 'https://fonts.googleapis.com/css' ); } return $fonts_url; } */ /** * Prints HTML with meta information for the current post-date/time and author. */ function bushwick_posted_on() { /* printf( '%1$s - %2$s ', get_the_author(),*/ printf( '%1$s ', esc_attr( get_the_date( 'j F Y' ) ) ); } /** * Displays navigation to next/previous post when applicable. * * @return void */ function bushwick_post_nav() { // Deactivate post_nav //return; // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; ?> ]*src *= *["\']?([^"\']*)/i', $post->post_content, $matches ); $first_img = $matches[1]; if ( empty( $first_img ) ) { return; //$first_img = "https://clickwp.com/wp-content/uploads/2014/06/icon-wpcom-to-wp.png"; //}else{ } $first_img='
Post Image
'; return $first_img; } function custom_excerpt_length( $length ) { return 60; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); // Replaces the excerpt "Read More" text by a link function my_the_excerpt() { $excerpt = get_the_excerpt(); $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); $excerpt = rtrim($excerpt,"[…] "); //$excerpt = substr($excerpt, 0, 400); //$excerpt = substr($excerpt, 0, strripos($excerpt, " ")); //$excerpt = trim(preg_replace( '/s+/', ' ', $excerpt)); $excerpt = rtrim($excerpt,'[&hellip]'); $excerpt = $excerpt.'...  leer más'; return $excerpt; } //add_filter('the_excerpt', 'my_the_excerpt', 5, 1);