' . esc_html__( 'Posted in %1$s', 'bigseotheme' ) . '', $categories_list ); } $tags_list = get_the_tag_list( '', esc_html__( ', ', 'bigseotheme' ) ); if ( $tags_list ) { printf( '' . esc_html__( 'Tagged %1$s', 'bigseotheme' ) . '', $tags_list ); } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment on %s', 'bigseotheme' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) ); echo ''; } edit_post_link( sprintf( esc_html__( 'Edit %s', 'bigseotheme' ), the_title( '"', '"', false ) ), '', '' ); } } function bigseotheme_pagination() { echo ''; } function bigseotheme_posts_related(){ $categories = get_the_category(); $category_name = $categories[0]->term_id; if ( class_exists('WPSEO_Primary_Term') ) { $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() ); $category_name = $wpseo_primary_term->get_primary_term(); } // WP_Query arguments $args = array ( 'cat' => $category_name, 'post__not_in' => array(get_the_ID()), 'posts_per_page' => '9', //'orderby' => 'rand', //'category_name' => $category_name, ); // The Query $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { echo '
'; echo '

Quiza tambien te interese :

'; echo '
'; while ( $query->have_posts() ) { $query->the_post(); get_template_part( 'template-parts/loops/loop', 'grid' ); } echo '
'; echo '
'; } // Restore original Post Data wp_reset_postdata(); } function bigseotheme_subtitle() { if(!bigseotheme_get_option_page('subtitle')) return; return '

'. bigseotheme_get_option_page('subtitle') . '

'; } function bigseotheme_social_sharing_buttons() { // Get current page URL $socialURL = get_permalink(); // Get current page title $socialTitle = str_replace( ' ', '%20', get_the_title()); // Get Post Thumbnail for pinterest $socialThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); // Construct sharing URL without using any script $twitterURL = 'https://twitter.com/intent/tweet?text='.$socialTitle.'&url='.$socialURL; $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$socialURL; $googleURL = 'https://plus.google.com/share?url='.$socialURL; $bufferURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$socialURL.'&title='.$socialTitle; $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$socialURL.'&media='.$socialThumbnail[0].'&description='.$socialTitle; // Add sharing button at the end of page/page content $social = '
'; $social .= '

Compartir

'; $social .= ''; $social .= ''; $social .= ''; $social .= ''; $social .= '
'; echo $social; }; function bigseotheme_the_category() { $category = get_the_category(); return $category[0]->cat_name; } add_filter( 'woocommerce_enqueue_styles', '__return_false' ); /*--------------------------- add_action('category_add_form_fields','add_extra_fields_to_category'); function add_extra_fields_to_category($taxonomy_name){ ?>
slug; //collect our custom fields $term_category_text = sanitize_text_field($_POST['category-text']); //save our custom fields as wp-options update_option('term_category_text_' . $term_slug, $term_category_text); } add_action('category_edit_form_fields','edit_extra_fields_for_category'); function edit_extra_fields_for_category($term){ //collect the term slug $term_slug = $term->slug; //collect our saved term field information $term_category_text = get_option('term_category_text_' . $term_slug); //output our additional fields ?> '6', ); // The Query $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { echo '
'; while ( $query->have_posts() ) { $query->the_post(); get_template_part( 'template-parts/loops/loop', 'grid-standard' ); } echo '
'; } // Restore original Post Data wp_reset_postdata(); }