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

Viendo 15 resultados - del 196 al 210 (de un total de 215)
  • Iniciador del debate drac022

    (@drac022)

    Resuelto a medias: El crear $editorial era para poder cambiar la categoría del loop siempre que quisiera desde las opciones del tema. Lo he cambiado por la manera normal para cargar loop de una categoría

    <?php $my_query = new WP_Query(‘category_name=editorial&showposts=2’); ?>

    y cambiando como dijiste WP_Query en vez de query_posts.

    Aún no entiendo muy bien donde estaba el problema pero he salido del paso, que también me sirve así.

    Muchas gracias por la ayuda igmoweb

    • hola, me llamo Daniel P Z, quisiera agredecer a cualquier persona que se tome el tiempo de leer mi post y poder ayudarme en él;

      Tengo un problema, declarando un Class, en el Div del comienzo de un post, dentro del loop, (wuau si lee este último enunciado alguien que no sepa wordpress se pierde al instante)
      Bueno sigue, les explico,

      En mi archivo index.php, mi loop para generar los post es el siguiente;

      <?php $recent = new WP_Query("cat=58&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
      <div class="wrapper p1">
      <figure class="img-indent4"><?php the_post_thumbnail('medium'); ?></figure>
      <div class="extra-wrap">
      <div class="date">
      <?php the_time(get_option('date_format')); ?>
      </div>
      " href="<?php the_permalink() ?>"><?php the_title(); ?>.
      </div>
      </div>
      <?php endwhile;?>

      El problema es el siguiente,, ; quisiera cambiarle el class cuando me muestre el post numero 4, y como mis conocimientos limitados de wordpress aun no me permiten, me descargue un pack de más de 400 plantillas de wordpress y en los ejemplos que pude sacar pude sacar un code para transformarlo de esta forma;

      <?php $recent = new WP_Query("cat=58&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
      <?php $count = 0; ?>
      <div class="wrapper p1">
      <figure class="img-indent4"><?php the_post_thumbnail('medium'); ?></figure>
      <div class="extra-wrap">
      <div class="date">
      <?php the_time(get_option('date_format')); ?>
      </div>
      " href="<?php the_permalink() ?>"><?php the_title(); ?>.
      </div>
      </div>
      <?php if (++$counter % 3 == 0) { echo "<div class='wrapper prev-indent-bot'><figure class='img-indent4'>the_post_thumbnail('medium');</figure><div class='extra-wrap'><div class='date'>October 28th, 2010</div>Set dolor ser adipiscing elit sed diam nonummy.</div></div>"; }?>
      <?php endwhile;?>

      Lo que se tendria que cambiar en el cuarto post es de;

      <div class="wrapper p1">

      a

      <div class='wrapper prev-indent-bot'>

      Como podria lograr eso?

    Jeick WpCOL

    (@jeickball)

    Hola Daninah!

    Este tema no tiene soporte para cabezote de imagen, sin embargo, te ayudare a poner uno usando código:
    En el panel de admin de wordpress ve a: apariencia > editor, verifica que tienes Runo Lite activado y elije en la parte derecha: Cabecera (header.php) y reemplaza el código por este:

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="primary">
     *
     */
    ?><!DOCTYPE html>
    
    <!--[if IE 6]>
    <html id="ie6" class="ie-oldie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]>
    <html id="ie7" class="ie-oldie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html id="ie8" class="ie-oldie" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    
    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'runo' ), max( $paged, $page ) );
    
    	?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri(); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    
    <?php
    	wp_head();
    ?>
    
    </head>
    
    <body <?php body_class(); ?>>
    <div id="container" class="runo-background">
    	 <header id="main-header" class="runo-background">
    
    	 	<div id="header-wrapper">
    
    		<hgroup>
    
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    					<img src="<?php echo get_template_directory_uri(); ?>/img/cabezote.gif" width="709" height="236" alt="">
    				</a>
    
    				<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    		</hgroup>
    
    		<nav id="main-nav" role="navigation">
    
    				<h3 class="assistive-text"><?php _e( 'Main menu', 'runo' ); ?></h3>
    				<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
    				<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'runo' ); ?>"><?php _e( 'Skip to primary content', 'runo' ); ?></a></div>
    				<div class="skip-link"><a class="assistive-text" href="#sidebar" title="<?php esc_attr_e( 'Skip to secondary content', 'runo' ); ?>"><?php _e( 'Skip to secondary content', 'runo' ); ?></a></div>
    				<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
    				<?php wp_nav_menu( array( 'items_wrap' => '<div class="menu"><ul>  %3$s </ul></div>', 'theme_location' => 'primary', 'container' => false) ); ?>
    
    		</nav><!-- #main-nav -->
    
    		</div>
    
    	</header>
    
    	<div id="primary">

    Recuerda Guardar dando clic en Actualizar Archivo.

    Luego sube tu cabezote o logo formato gif a la carpeta: /wp-content/themes/runo-lite/img/ con el nombre cebezote.gif

    Si todo sale bien aparecerá tu cabezote en la pagina.

    Saludos!

    Iniciador del debate Steeep

    (@steeep)

    Les dejo también los códigos de los archivos index.php , home.php, page.php que al parecer son estos donde se mostrarían las entradas.

    index.php

    <?php get_header(); ?>
    
    <?php if (is_archive()) $post_number = get_option('elegantestate_archivenum_posts');
    if (is_search()) $post_number = get_option('elegantestate_searchnum_posts');
    if (is_tag()) $post_number = get_option('elegantestate_tagnum_posts');
    if (is_category()) $post_number = get_option('elegantestate_catnum_posts'); ?>
    
    <div id="content-top">
    	<div id="menu-bg"></div>
    	<div id="top-index-overlay"></div>
    
    	<div id="content" class="clearfix">
    		<div id="main-area">
    			<?php $i = 1; ?>
    			<?php global $query_string;
    			if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat");
    			else query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
    				<?php $i++; ?>
    			<?php endwhile; ?>
    				<div class="clear"></div>
    				<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    				else { ?>
    					 <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
    				<?php } ?>
    
    			<?php else : ?>
    				<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
    			<?php endif; wp_reset_query(); ?>
    
    		</div> <!-- end #main-area-->	
    
    		<?php get_sidebar(); ?>
    
    	<?php get_footer(); ?>

    home.php

    <?php get_header(); ?>
    
    	<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
    	<div id="content-top">
    		<div id="content" class="clearfix">
    			<div id="main-area">
    				<?php $i = 1; ?>
    				<?php
    				$args=array(
    				   'showposts'=>get_option('elegantestate_homepage_posts'),
    				   'paged'=>$paged,
    				   'category__not_in' => get_option('elegantestate_exlcats_recent'),
    				);
    				if (get_option('elegantestate_duplicate') == 'false')
    					$args['post__not_in']= $ids;
    				query_posts($args); ?>
    				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    					<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
    					<?php $i++; ?>
    				<?php endwhile; ?>
    					<div class="clear"></div>
    					<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    					else { ?>
    						 <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
    					<?php } ?>
    
    				<?php else : ?>
    					<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
    				<?php endif; wp_reset_query(); ?>
    
    			</div> <!-- end #main-area-->	
    
    			<?php get_sidebar(); ?>
    
    		<?php get_footer(); ?>

    page.php

    <?php the_post(); ?>
    <?php get_header(); ?>
    
    	<div id="content-top">
    		<div id="menu-bg"></div>
    		<div id="top-index-overlay"></div>
    
    		<div id="content" class="clearfix">
    			<div id="main-area">
    				<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
    
    				<div class="full_entry clearfix">
    					<?php if (get_option('elegantestate_integration_single_top') <> '' && get_option('elegantestate_integrate_singletop_enable') == 'on') echo(get_option('elegantestate_integration_single_top')); ?>	
    
    					<div class="entry_content<?php if ($thumb <> '' && get_option('elegantestate_thumbnails_index') == 'on') echo(' setwidth') ?>">
    						<?php $width = 159;
    							  $height = 159;
    							  $classtext = '';
    							  $titletext = get_the_title();
    
    							  $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
    							  $thumb = $thumbnail["thumb"]; ?>
    
    						<?php if($thumb <> '' && get_option('elegantestate_page_thumbnails') == 'on') { ?>
    							<div class="small-thumb">
    								<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
    								<span class="overlay"></span>
    							</div> 	<!-- end .small-thumb -->
    						<?php }; ?>
    
    						<h1 class="single-title"><?php the_title(); ?></h1>
    						<?php the_content(); ?>
    						<?php wp_link_pages(array('before' => '<p><strong>'.__('Pages','ElegantEstate').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    						<?php edit_post_link(__('Edit this page','ElegantEstate')); ?>
    					</div> <!-- end .entry_content -->
    
    				</div> <!-- .full_entry -->
    
    				<?php if (get_option('elegantestate_show_pagescomments') == 'on') comments_template('', true); ?>
    
    			</div> <!-- end #main-area -->
    
    			<?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Iniciador del debate wordpressero

    (@wordpressero)

    Hola otra vez Shinjiru_fred!
    Ya he solucionado todos los problemas (tengo el diseño de mi página exactamente como quería) excepto uno:
    Al hacer lo mismo en mi category.php me ha surgido un problema:
    Empiezo con esta parte de código:

    <?php if (have_posts()) : ?>
    <div class=»col-left»>
    <?php query_posts( ‘posts_per_page=4’ );
    while (have_posts()) : the_post(); ?>

    y sí me muestra 4 posts, pero son los últimos 4 posts que he escrito en cualquier categoría. Es decir, si entro en mi categoría 3 puedo ver posts de otras categorías si han sido los últimos que he escrito. ¿A qué puede deberse? Obviamente, quiero que me aparezcan en cada categoría los posts de esa categoría.

    He probado con:

    <?php if (is_category(3)) : ?>
    <?php query_posts( ‘cat=3&showposts=7’ );
    while (have_posts()) : the_post(); ?>

    elseif (is_category(4)) :

    elseif (is_category(5)) :


    <?php endif; ?>

    Y me sale bien pero claro, tengo 84 categorías y debería hacer 84 if…
    ¿Hay alguna forma de omitir todo esto y que únicamente coja las entradas de la categoría en la que me encuentre?

    Gracias otra vez 😉

    Iniciador del debate DaleLlanero

    (@dalellanero)

    Pues he revisado el index.php del template y hay cosas que puedo modificar como lo son que salgan en una sola columna, pero solo eso no mas y si quiero que salgan asi de una entrada y no las dos que la imagen quede a la izquierda y al lado de ella el texto y luego que diga leer mas asi como en el estilo blog, dejo mi codigo por si depronto me puedas ayudar.

    <?php get_header(); ?>
    <?php if (function_exists (horizontal_scrolling_announcement)) horizontal_scrolling_announcement(); ?>
    		<div id="main">
    
    			<?php if(get_option('pyre_featured_slider') == 'On' && get_option('pyre_featured_tag')): ?>
    			<?php
    			$featured_posts = new WP_Query(array(
    				'showposts' => get_option('pyre_featured_posts'),
    				'tag' => get_option('pyre_featured_tag')
    			));
    			?>
    			<div id="featured-wrapper">
    
    				<div class="slider-item">
    
    					<?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
    					<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'slider-image'); ?>
    					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" title="#htmlcaption_<?php echo $post->ID; ?>"/></a>
    					<?php endwhile; ?>
    
    				</div>
    
    				<?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
    				<div id="htmlcaption_<?php echo $post->ID; ?>" class="slider-text nivo-html-caption">
    
    					<span class="category"><?php the_category(', '); ?></span>
    					<span class="date"><?php the_time('F d, Y'); ?></span>
    
    					<div class="slider-heading">
    
    						<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    						<p><?php echo string_limit_words(get_the_excerpt(), 40); ?></p>
    
    					</div>
    
    				</div>
    
    				<?php endwhile; ?>
    
    			</div>
    			<?php endif; ?>
    
    			<div id="items-wrapper">
    
    				<?php $count = 1; ?>
    				<?php while(have_posts()): the_post(); ?>
    				<?php if($count == 3): $count = 1; endif; if($count == 2): $class = 'last'; else: $class = ''; endif; ?>
    				<div class="item <?php echo $class; ?>">
    
    					<?php if(has_post_thumbnail()): ?>
    					<div class="item-thumb">
    						<?php
    						if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery')) {
    							$icon = '<span class="thumb-icon ' . get_post_format($post->ID) . '"></span>';
    						} else {
    							$icon = '';
    						}
    						echo $icon;
    						?>
    						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('archive-image'); ?></a>
    						<span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
    						<?php if(get_post_meta($post->ID, 'pyre_overall_score', true)): ?>
    						<span class="item-review"><img src="<?php echo get_template_directory_uri(); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="<?php the_title(); ?> Overall Score" /></span>
    						<?php endif; ?>
    					</div>
    					<?php endif; ?>
    
    					<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    					<p><?php echo string_limit_words(get_the_excerpt(), 25); ?></p>
    
    					<div class="item-meta">
    						<span class="date"><?php the_time('F d, Y'); ?></span>
    						<span class="category"><?php the_category(', '); ?></span>
    					</div>
    
    				</div>
    				<?php $count++; endwhile; ?>
    
    			</div>
    
    			<?php kriesi_pagination($pages = '', $range = 2); ?>
    
    		</div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    • Buenas chicos

      Supongo que todos los temas se rigen por el mismo patrón… Lo que yo quiero es eliminar unas cuentas cosas que me molestan y que se hace a nivel de código. Mi tema para concretar es Arras y lo uso para un blog corporativo. Bien empecemos:

      – Eliminar la «W» del panel superior de los usuarios o administrador. Esto lo acabo de conseguir con esto (functions.php del tema):

      function nwp_admin_bar() {
          global $wp_admin_bar;
          $wp_admin_bar->remove_menu('wp-logo');
          $wp_admin_bar->remove_menu('about');
          $wp_admin_bar->remove_menu('wporg');
          $wp_admin_bar->remove_menu('documentation');
          $wp_admin_bar->remove_menu('support-forums');
          $wp_admin_bar->remove_menu('feedback');
          $wp_admin_bar->remove_menu('view-site');
      }
      add_action( 'wp_before_admin_bar_render', 'nwp_admin_bar' );

      – Eliminar el «buscar…» de la parte superior

      – Eliminar el icono del Feed-RSS… He encontrado algo, pero solo elimina el acceso pero el icono sigue aquí, por tanto no me sive porque yo quiero eliminar el icono:

      function disable_all_feeds() {
      
      add_action('do_feed', 'disable_all_feeds', 1);
      add_action('do_feed_rdf', 'disable_all_feeds', 1);
      add_action('do_feed_rss', 'disable_all_feeds', 1);
      add_action('do_feed_rss2', 'disable_all_feeds', 1);
      add_action('do_feed_atom', 'disable_all_feeds', 1);

      ¿Alguna ayudita? 🙂

    • Hola amigos de wordpress.org, he instalado y modificado el plugin wordpress guest post, que sirve para que los usuarios del blog puedan publicar artículos que luego yo decido si apruebo o no y se autopublican. El problema es que al autopublicarse se publican mal. Por ejemplo se publican así:

      <p>Hace relativamente poco os trajimos un art&iacute;culo en el que habl&aacute;bamos de los pa&iacute;ses con m&aacute;s oportunidades de trabajo del mundo. Los pa&iacute;ses con menos paro del mundo. El &iacute;ndice de paro es un buen indicador de las <strong>oportunidades de trabajo</strong> que un pa&iacute;s puede ofrecer a sus habitantes, pero un paro inferior no quiere decir autom&aacute;ticamente que ese pa&iacute;s tendr&aacute;s las mejores oportunidades para una persona.</p>
      <p>&nbsp;</p>

      Si yo, una vez publicado, voy al articulo en mi editor y corto el texto completo y lo pego tal cuál pero en HTML MODE, sí que sale a la perfección el texto (tildes, p tags y todo). Entonces lo que supongo es que el php que realiza la función manda el artículo al editor pero al VISUAL MODE, en vez de al HTML MODE.

      El caso es que como no piloto tanto de Php quería ver si algún experto me podía ver dónde está la función que llama a pegar el texto recopilado y a pegarlo en el visual mode y publicarlo para que en vez de esto, lo envíe al html mode y se autopublique bien. Os dejo la parte del código en dónde creo que está:

      mi blog: Vida Emigrante
      página para que los invitados publiquen: http://vidaemigrante.com/enviar/

      <?php
      /*
      Plugin Name: WordPress Guest Post Plugin
      Plugin URI: http://lisaangelettieblog.com/wordpress-guest-post-plugin/
      Description: Review posts submitted by the users to approval...
      Author: Lisa Angelettie
      Version: 2.7
      Author URI: http:/wp-admin/upgrade-functions.php');
      
      register_activation_hook(__FILE__, 'wppostreviewbyadmin_install');
      register_deactivation_hook(__FILE__, 'wppostreviewbyadmin_uninstall');
      
      add_action('admin_menu', 'wppostreviewbyadmin_admin_menus');
      //add_action('init', 'wppostreviewbyadmin_install');
      
      add_action('init', 'wppostreviewbyadmin_init');
      add_action('wp_head', 'wppostreviewbyadmin_styling');
      //session_start();
      global $wpdb;
      define("WPUSER_POSTS_TABLE",$wpdb->prefix."usersposts");
      
      wp_enqueue_script('postreviewbyadmin_script',get_bloginfo('wpurl').'/wp-content/plugins/wordpress-guest-post/js/postreviewbyadmin_script.js');
      wp_enqueue_script('inneditor_script',get_bloginfo('wpurl').'/wp-content/plugins/wordpress-guest-post/jscripts/tiny_mce/tiny_mce.js');
      
      function wppostreviewbyadmin_init()	{
      	session_start();
      }
      
      function wppostreviewbyadmin_install()	{
      	global $wpdb, $wp_rewrite;
      	$table_userposts	=	WPUSER_POSTS_TABLE;
      	$getTable			=	mysql_query("SHOW TABLES LIKE '".WPUSER_POSTS_TABLE."'");
      	$Version			=	get_option('wppostreviewbyadmin_version');
      	$Now			=	time();
      	$createqry = "CREATE TABLE $table_userposts(
      				<code>ID</code> bigint(20) NOT NULL auto_increment,
      				<code>post_author</code> bigint(20) NOT NULL,
      				<code>post_author_name</code> varchar(255) NOT NULL,
      				<code>post_author_fname</code> varchar(255) NOT NULL,
      				<code>post_author_lname</code> varchar(255) NOT NULL,
      				<code>post_author_email</code> varchar(100) NOT NULL,
      				<code>post_date</code> datetime NOT NULL,
      				<code>post_date_gmt</code> datetime NOT NULL,
      				<code>post_content</code> longtext NOT NULL,
      				<code>post_title</code> text NOT NULL,
      				<code>post_excerpt</code> text NOT NULL,
      				<code>post_status</code> varchar(20) NOT NULL,
      				<code>post_type</code> varchar(20) NOT NULL,
      				<code>category_ids</code> varchar(500) NOT NULL,
      				<code>post_tags</code> varchar(500) NOT NULL,
      				<code>approval</code> int(11) NOT NULL, PRIMARY KEY  (<code>ID</code>) )";
      	$wpdb->query($createqry);
      	add_option('wppostreviewbyadmin_version','1.8');
      	add_option('wppostreviewbyadmin_guestpage', '');
      	add_option('wppostreviewbyadmin_adminmailid',get_option('admin_email'));
      	add_option('wppostreviewbyadmin_paginationno',25);
      	add_option('wppostreviewbyadmin_postsubmsg', "Gracias por enviar este artículo a Vida Emigrante. Lo hemos recibido satisfactoriamente y pasará en pocas horas por el proceso de edición. Una vez que el artículo sea aprobado, será publicado en el blog de Vida Emigrante y recibirás una confirmación por email.");
      	add_option('wppostreviewbyadmin_postappmsg', 'Your Post "%postapp_title%" has got reviewed and approved by the admin.');
      	add_option('wppostreviewbyadmin_enableeditor', '');
      
      /*
      	$post_date				=	date("Y-m-d H:i:s");
      	$post_date_gmt			=	gmdate("Y-m-d H:i:s");
      	$num					=	0;
      	$pages[$num]['name']	=	'add-posts';
      	$pages[$num]['title']	=	'Add Post';
      	$pages[$num]['tag']		=	'[addposts]';
      	$pages[$num]['option']	=	'addposts_url';
      	$num++;
      	$newpages = false;
      	$i = 0;
      	$post_parent = 0;
      	foreach($pages as $page)	{
      		$check_page = $wpdb->get_row("SELECT * FROM <code>&quot;.$wpdb->posts.&quot;</code> WHERE <code>post_content</code> LIKE '%".$page['tag']."%'  AND <code>post_type</code> NOT IN('revision') LIMIT 1",ARRAY_A);
      		if($check_page == null)	{
      			if($i == 0) {
      				$post_parent	=	0;
      			}
      			else	{
      				$post_parent	=	$first_id;
      			}
      			if($wp_version >= 2.1)	{
      				$sql ="INSERT INTO ".$wpdb->posts."(post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt,  post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_type) VALUES ('1', '$post_date', '$post_date_gmt', '".$page['tag']."', '', '".$page['title']."', '', 'publish', 'open', 'open', '', '".$page['name']."', '', '', '$post_date', '$post_date_gmt', '$post_parent', '0', 'page')";
      			}
      			else	{
      				$sql ="INSERT INTO ".$wpdb->posts."(post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt,  post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_type) VALUES ('1', '$post_date', '$post_date_gmt', '".$page['tag']."', '', '".$page['title']."', '', 'publish', 'open', 'open', '', '".$page['name']."', '', '', '$post_date', '$post_date_gmt', '$post_parent', '0', 'page')";
      			}
      			$wpdb->query($sql);
      			$post_id = $wpdb->insert_id;
      			if($i == 0)	{
      				$first_id = $post_id;
      			}
      			$wpdb->query("UPDATE $wpdb->posts SET guid = '" . get_permalink($post_id) . "' WHERE ID = '$post_id'");
      			update_option($page['option'],  get_permalink($post_id));
      			$newpages = true;
      			$i++;
      		}
      	}
      	*/
      	add_option('wppostreviewbyadmin_style','original.css');
      }
      
      function wppostreviewbyadmin_uninstall()	{
      	// The uninstall function is no longer used as of v1.2 but if you wish to do a clean uninstall and remove everything
      	// Then uncomment the line '// register_deactivation_hook(__FILE__, 'wpmenudir_uninstall');' above then deactivate the plugin.
      	global $wpdb;
      	$table_links = WPUSER_POSTS_TABLE;
      	$wpdb->query("DROP TABLE {$table_links}");
      	delete_option('wppostreviewbyadmin_version');
      	delete_option('wppostreviewbyadmin_guestpage');
      	delete_option('wppostreviewbyadmin_adminmailid');
      	delete_option('wppostreviewbyadmin_paginationno');
      	delete_option('wppostreviewbyadmin_postsubmsg');
      	delete_option('wppostreviewbyadmin_postappmsg');
      	delete_option('wppostreviewbyadmin_style');
      	delete_option('wppostreviewbyadmin_enableeditor');
      }
      
      function wppostreviewbyadmin_styling($Style='original.css')	{
      	if($Style=='')	{
      		$Style=get_option('wppostreviewbyadmin_style');
      	}
      	$StyleFile=dirname(__FILE__).'/styles/'.$Style;
      	if(file_exists($StyleFile) && $Style)	{
      		include_once($StyleFile);
      	}
      //	session_start();
      }
      
      function wppostreviewbyadmin_admin_menus()	{
      	add_menu_page('Wordpress Guest Post', 'Wordpress Guest Post', 8, __FILE__, 'wppostreviewbyadmin_reviewposts');
      	add_submenu_page(__FILE__, 'Settings', 'Settings', 8, 'sub-page', 'wppostreviewbyadmin_settings');
      }
      
      function wp_delete_userpost($spl_id)	{
      	global $wpdb;
      	$query = "DELETE FROM ".$wpdb->prefix."usersposts WHERE ID=$spl_id ";
      	$wpdb->query($query);
      }
      
      function wp_select_userpost($postid)	{
      	global $wpdb;
      	if($postid != "")	{
      		$selpostdetails_query = "SELECT * FROM ".$wpdb->prefix."usersposts where ID = ".$postid;
      		$selpostdetails = $wpdb->get_results($selpostdetails_query, ARRAY_A);
      	}
      	return $selpostdetails;
      }
      
      function wppostreviewbyadmin_reviewposts()	{
      	global $wpdb, $wp_rewrite;
      	wppostreviewbyadmin_styling();
      	if(($_POST["submit"]) && ($_POST["postid"]))	{
      		$addpostval = wp_select_userpost($_POST["postid"]);
      		$newpost = array();
      		$newpost["post_author"] = 1;
      		$newpost["post_category"][0] = $_POST["cat"];
      		$newpost["post_date"] = $addpostval[0]["post_date"];
      		$newpost["post_title"] = $_POST["post_title"];
      		$newpost["post_content"] = htmlspecialchars(trim($_POST['post_content'], "\t\n "), ENT_QUOTES);
      		$newpost["post_excerpt"] = $_POST["excerpt"];
      		$newpost["post_status"] = 'publish';
      		$newpost["post_type"] = 'post';
      		$newpost["tags_input"] = $_POST["tags"];
      		$pid = wp_insert_post( $newpost, $wp_error );
      		if($pid != "")	{
      			$StrMailcontent1 = 
      
      <?php } else { ?>
      	<div class="wrap">
      	<p>Lo siento, no puedes ver esta página.</p>
      	</div>
      <?php } ?>		
      
      <?php
      	}
      
      	elseif(($_REQUEST["sns_reviewposts_view"] == "disapprove") && ($_REQUEST["sns_reviewposts_id"] != "") )	{
      		wp_delete_userpost($_REQUEST["sns_reviewposts_id"]);
      		$delmsg = "The selected post has been disapprove successfully";
      		echo "<div id=\"message\" class=\"updated fade\"><p>$delmsg</p></div>";
      	}
      	else {
      
      	$selpostdetails_query	=	"SELECT * FROM ".$wpdb->prefix."usersposts";
      	$selpostdetails			=	$wpdb->get_results($selpostdetails_query);
      	$paginno = get_option('wppostreviewbyadmin_paginationno');
      	if($_REQUEST['pno'])
      		$pgno=$_REQUEST['pno']-1;
      	else
      		$pgno=0;
      	$pno= $_REQUEST['pno'];
      //	$limit=$pgno*25;
      	$limit=$pgno*$paginno;
      
      //	$getpostdetails_query	=	"SELECT * FROM ".$wpdb->prefix."usersposts ORDER BY ID ASC LIMIT $limit, 25";
      	$getpostdetails_query	=	"SELECT * FROM ".$wpdb->prefix."usersposts ORDER BY ID ASC LIMIT $limit, $paginno";
      	$getpostdetails			=	$wpdb->get_results($getpostdetails_query);
      
      	$totalselpostdetails = count($selpostdetails);
      	if(empty($getpostdetails))	{
      		echo '<div class="error"><p>There are 0 posts for review.</p></div>';
      	}
      	else {
      		echo '<div class="error"><p>There are ';
      		echo count($getpostdetails);
      		echo ' posts for review.</p></div>';
      	}
      	?>
      <?php
      					$class = "";
      					$homesss = get_settings('home');
      					$i=1;
      					foreach($getpostdetails as $hh)	{
      						echo "<tr id=\"search-{$hh->ID}\" class=\"$class\">";
      						echo "<td>". $hh->ID."</td>\n";
      						echo "<td>". $hh->post_title."</td>\n";
      						echo "<td>". $hh->post_author_name."</td>\n";
      						echo "<td>". $hh->post_date."</td>\n";
      						echo "<td><a class='view' href='admin.php?page=wordpress-guest-post/wordpressguestpost.php&sns_reviewposts_view=approve&sns_reviewposts_id={$hh->ID}'>Approve</a></td>\n";
      						echo "<td><a class='view' href='admin.php?page=wordpress-guest-post/wordpressguestpost.php&sns_reviewposts_view=disapprove&sns_reviewposts_id={$hh->ID}' onclick=\"return confirm('" . js_escape(sprintf( __("You are about to delete the slider image '%s'.\n'OK' to delete, 'Cancel' to stop.", 'slider_images'), $hh->id)) . "' );\">Disapprove</a></td>\n";
      						echo "</tr>";
      						$class = empty($class)?"alternate":"";
      						$i++;
      					}
      				}
      			?>
      			</tbody>
      		</table>
      		<?php //echo wppostreviewbyadmin_perpagefun($totalselpostdetails,25,$pno,$getcatlist); ?>
      		<?php echo wppostreviewbyadmin_perpagefun($totalselpostdetails,$paginno,$pno,$getcatlist); ?>
      	</div>
      	<?php
      	}
      }
      function wppostreviewbyadmin_get_pages() {
      	global $post;
      //	$nonce= wp_create_nonce('kgp_nonce');
      	$args = array('post_type' => 'page', 'numberposts' => -1, 'order'=> 'ASC', 'orderby' => 'menu_order');
      //	$myposts = get_posts('post_type=page');
      	$myposts = get_posts($args); ?>
      	<select id="wppostreviewbyadmin_guestpage" name="wppostreviewbyadmin_guestpage">
      	<option value="">Select WordPress Guest Post Page</option>
      	<?php foreach($myposts as $post) :
      	setup_postdata($post);
      	if(get_option('wppostreviewbyadmin_guestpage')==$post->ID) : ?>
      	<option SELECTED value="<?php echo $post->ID; ?>"><?php the_title(); ?></option>
      	<?php else : ?>
      	<option value="<?php echo $post->ID; ?>"><?php the_title(); ?></option>
      	<?php endif; ?>
      	<?php endforeach; ?>
      	</select>
      <?php }
      function wppostreviewbyadmin_get_adminemailid()	{
      	if(get_option('wppostreviewbyadmin_adminmailid') == "")	{
      		$adminemail = get_option('admin_email');
      	}
      	else	{
      		$adminemail = get_option('wppostreviewbyadmin_adminmailid');
      	}
      	?>
      	<input type="text" value="<?php echo $adminemail; ?>" name="adminmailid" id="adminmailid" size="50" />
      <?php
      }
      function wppostreviewbyadmin_get_paginationno()	{
      	if(get_option('wppostreviewbyadmin_paginationno') == "")	{
      		$postsno = 25;
      	}
      	else	{
      		$postsno = get_option('wppostreviewbyadmin_paginationno');
      	}
      	?>
      	<input type="text" value="<?php echo $postsno; ?>" name="paginationno" id="paginationno" size="50" />
      <?php
      }
      function wppostreviewbyadmin_get_enableeditor()	{
      	if(get_option('wppostreviewbyadmin_enableeditor') == "")	{
      		$enableeditor = "";
      	}
      	else	{
      		$enableeditor = get_option('wppostreviewbyadmin_enableeditor');
      	}
      	?>
      	<input type="checkbox" value="Y" name="enableeditor" id="enableeditor" <?php if($enableeditor == "Y") { ?> checked="checked" <?php } ?>  />
      <?php
      }
      
      function wppostreviewbyadmin_replace_posttitle($posttitle) {
      	$msg=stripslashes(get_option('wppostreviewbyadmin_postappmsg'));
      	$msg=str_replace('%postapp_title%', $posttitle, $msg);
      	return $msg;
      
      	else	{
      		$postssubmsg = get_option('wppostreviewbyadmin_postsubmsg');
      	}
      	?>
      	<textarea name="postssubmsg" id="postssubmsg" style="height:200px;" cols="50"><?php echo $postssubmsg; ?></textarea>
      	<?php
      }
      function wppostreviewbyadmin_get_postappmsg()	{
      	if(get_option('wppostreviewbyadmin_postappmsg') == "")	{
      		$postsappmsg = 'Your Post "%postapp_title%" has got reviewed and approved by the admin.';
      	}
      	else	{
      		$postsappmsg = get_option('wppostreviewbyadmin_postappmsg');
      	}
      	?>
      	<textarea name="postsappmsg" id="postsappmsg" style="height:200px;" cols="50"><?php echo $postsappmsg; ?></textarea>
      	<?php
      }
      
      function wppostreviewbyadmin_settings()	{
      	echo '<div class="wrap">
      			<h2>Settings</h2>
      			<p></p>';
      	if(get_option('wppostreviewbyadmin_guestpage') == "")	{
      		echo '<div class="error"><p>Please select the page from the dropdown next to "Wordpress Guest Post Page"</p></div>';
      	}
      	if($_POST)	{
      		update_option('wppostreviewbyadmin_guestpage', $_POST['wppostreviewbyadmin_guestpage']);
      		update_option('wppostreviewbyadmin_adminmailid', $_POST['adminmailid']);
      		update_option('wppostreviewbyadmin_paginationno', $_POST['paginationno']);
      		update_option('wppostreviewbyadmin_postsubmsg', stripslashes($_POST['postssubmsg']));
      		update_option('wppostreviewbyadmin_postappmsg', stripslashes($_POST['postsappmsg']));
      		update_option('wppostreviewbyadmin_enableeditor', $_POST['enableeditor']);
      		$wppostreviewbyadmin_guestpage = get_option('wppostreviewbyadmin_guestpage');
      	}
      	//	echo "<div id=\"message\" class=\"updated fade\"><p>Setting will be available on upgraded version</p></div>";
      	?>
      
      <?php if(get_option('wppostreviewbyadmin_enableeditor') != "")	{ ?>
      <script type="text/javascript">
      	tinyMCE.init({
      		// General options
      		mode : "exact",
      //		mode : "textareas",
      		elements : "post_content",
      		theme : "advanced",
      		plugins : 
      
      <?php } ?>
      <?php if($error)	{ ?>
      <p style="color:#FF0000; font-weight:bold;"><?php echo $error; ?></p>
      <?php } ?>
      	<form id="frmaddpost" name="frmaddpost" method="post" action="" enctype="multipart/form-data">
      		<div class="addpostmaindiv">
      <?php
      }
      }
      
      add_action('the_content', 'callpostcnt');
      
      function callpostcnt($content) {
      	global $post;
      	$theme_name = get_current_theme();
      	$wppostreviewbyadmin_guestpage = get_option("wppostreviewbyadmin_guestpage");
      //	if(is_page(get_option('wppostreviewbyadmin_guestpage'))) {
      	if($post->ID == get_option('wppostreviewbyadmin_guestpage')) {
      		if($theme_name == "Thesis")	{
      			add_action('thesis_hook_before_post', 'addpostbyuser_func');
      		}
      		else	{
      			add_action('the_content', 'addpostbyuser_func');
      			return $content = addpostbyuser_func();
      		}
      	}
      	else {
      		return $content;
      	}
      }
      
      	function wp_insert_userpost($postarr)	{
      	global $wpdb;
      	$post_title			=	$postarr["post_title"];
      	$post_author_name	=	$postarr["posted_aname"].''.$postarr["posted_lname"];
      	$post_author_fname	=	$postarr["posted_aname"];
      	$post_author_lname	=	$postarr["posted_lname"];
      	$post_author_email	=	$postarr["posted_aemail"];
      	$post_content		=	$postarr["post_content"];
      	$excerpt			=	$postarr["excerpt"];
      	$post_tags			=	$postarr["tags"];
      	$cat_ids			=	$postarr["cat"];
      	$post_status		=	"publish";
      	$post_type			=	"post";
      	$post_date			=	date("Y-m-d H:i:s");
      	$query				=	"INSERT IGNORE INTO ".$wpdb->prefix."usersposts(post_author_name, post_author_fname, post_author_lname, post_author_email, post_date, post_content, post_title, post_excerpt, post_status, post_type, category_ids, post_tags) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)";
      	$query				=	$wpdb->prepare($query, $post_author_name, $post_author_fname, $post_author_lname, $post_author_email, $post_date, $post_content, $post_title, $excerpt, $post_status, $post_type, $cat_ids, $post_tags);
      	$wpdb->query($query);
      	$spl_id				=	$wpdb->insert_id;
      	if($spl_id != "")	{
      		$inspostdetails_query	=	"SELECT * FROM ".$wpdb->prefix."usersposts where ID = ".$spl_id;
      		$inspostdetails			=	$wpdb->get_results($inspostdetails_query, ARRAY_A);
      	}
      	$inspostdetails[0]["category_names"] .= get_cat_name($inspostdetails[0]["category_ids"]);
      	$StrMailcontent = '
      		<html>
      			<head><title>New Post Added in Temp Table</title></head>
      			<body>
      		<div style="border:10px solid #3AABE3float:left;width:610px;">
      			<table align="center" width="610px" border="0" cellpadding="4" cellspacing="4" align="center">
      				<tr><td colspan="3">&nbsp;</td></tr>
      				<tr>
      					<td style="color:#4E6E8E;" colspan="3"><font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Hi Admin</strong></font></td>
      				</tr>
      				<tr>
      					<td width="130" valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Title Of Article</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td width="332" style="color:#4E6E8E;" valign="top">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_title'].' </font>
      					</td>
      				</tr>';
      				$StrMailcontent .= '
      				<tr>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Author First Name</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_author_fname'].'</font>
      					</td>
      				</tr>
      				<tr>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Author Last Name</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_author_lname'].'</font>
      					</td>
      				</tr>';
      				$StrMailcontent .= '
      				<tr>
      					<td style="color:#4E6E8E;" valign="top">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Article Summary</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td style="color:#4E6E8E;" valign="top">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_excerpt'].'</font>
      					</td>
      				</tr>
      				<tr>
      					<td style="color:#4E6E8E;" valign="top">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Article Content</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td style="color:#4E6E8E;" valign="top">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_content'].'</font>
      					</td>
      				</tr>
      				<tr>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Category</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['category_names'].'</font>
      					</td>
      				</tr>
      				<tr>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Tags</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_tags'].'</font>
      					</td>
      				</tr>
      				<tr>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Posted on</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">'.$inspostdetails[0]['post_date'].'</font>
      					</td>
      				</tr>
      				<tr>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>To review and approve the post</strong></font>
      					</td>
      					<td width="8" valign="top">:</td>
      					<td valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><a href=" '.get_option('home').'/wp-admin/admin.php?page=wordpress-guest-post/wordpressguestpost.php&sns_reviewposts_view=approve&sns_reviewposts_id='.$inspostdetails[0]['ID'].'">Click the link to review and approve posts</a></font>
      					</td>
      				</tr>';
      				$StrMailcontent .= '<tr><td colspan="3">&nbsp;</td></tr>
      				<tr>
      					<td style="color:#4E6E8E;" colspan="3">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">Thanks & Regards <br>';
      							$StrMailcontent .= $inspostdetails[0]['post_author_fname'].' '.$inspostdetails[0]['post_author_lname'];
      							$StrMailcontent .='</font>
      					</td>
      				</tr>
      				<tr><td style="border-bottom:1px dotted #cccccc" colspan="3"></td></tr>
      			</table>
      		</div>
      		</body>
      	</html>';
      	$headers  = 'MIME-Version: 1.0' . "\r\n";
      	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
      	$headers .= 'From: '.$inspostdetails[0]['post_author_name'].'<'.$inspostdetails[0]['post_author_email'].'>'.'' . "\r\n";
      	$subject = "Artículo en Vidaemigrante | Nuevo artículo para revisar.";
      	$ToEmail = get_option('wppostreviewbyadmin_adminmailid');
      	mail($ToEmail, $subject, $StrMailcontent, $headers);
      	$StrMailcontent1 = '
      	<html>
      		<head><title>Articulo recibido en VidaEmigrante</title></head>
      		<body>
      		<div style="border:10px solid #3AABE3float:left;width:610px;">
      			<table align="center" width="610px" border="0" cellpadding="4" cellspacing="4" align="center">
      				<tr><td>&nbsp;</td></tr>
      				<tr>
      					<td style="color:#4E6E8E;"><font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>Hola '.$inspostdetails[0]['post_author_fname'].'</strong></font></td>
      				</tr>
      				<tr>
      					<td width="130" valign="top" style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;"><strong>';
      
      	//$StrMailcontent1 .= "Gracias por enviar este artículo a Vida Emigrante. Lo hemos recibido satisfactoriamente y pasará en pocas horas por el proceso de edición. Una vez que el artículo sea aprobado, será publicado en el blog de Vida Emigrante y recibirás una confirmación por email.";
      	$StrMailcontent1 .= get_option('wppostreviewbyadmin_postsubmsg');
      	$StrMailcontent1 .= '</strong></font>
      					</td>
      				</tr>';
      				$StrMailcontent1 .= '<tr><td>&nbsp;</td></tr>
      				<tr>
      					<td style="color:#4E6E8E;">
      						<font size="2" face="Verdana, Arial, Helvetica, sans-serif;">Muchas gracias, <br>El equipo de VidaeMigrante.com</font>
      					</td>
      				</tr>
      				<tr><td style="border-bottom:1px dotted #cccccc"></td></tr>
      			</table>
      		</div>
      		</body>
      	</html>';
      	$headers1  = 'MIME-Version: 1.0' . "\r\n";
      	$headers1 .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
      	$headers1 .= 'From: VidaEmigrante.com<'.get_option('wppostreviewbyadmin_adminmailid').'>'.'' . "\r\n";
      	$subject1 = "Nuevo artículo enviado a Vidaemigrante";
      	$ToEmail1 = $inspostdetails[0]['post_author_email'];
      
      	mail($ToEmail1, $subject1, $StrMailcontent1, $headers1);
      
      	return $spl_id;
      }
      
      function wppostreviewbyadmin_perpagefun($total,$limit,$page='',$Search='')	{
      	global $_REQUEST,$global_config,$_SESSION;
      	$Searchval=$Search;
      	$totalrecords  = $total;
      	if($limit=='')
      		$limit=5;
      	//$pagenumber = intval(($offset + $limit) / $limit);
      	$totalpages = intval($totalrecords/$limit);
      	if ($totalrecords%$limit > 0)	{ // partial page
      		$lastpage = $totalpages * $limit;
      		$totalpages++;
      	}
      	else	{
      		$lastpage = ($totalpages - 1) * $limit;
      	}
      	$navstring  = "
      		<script type='text/javascript'>
      			function perpages(pno)	{
      				document.getElementById('pno').value=pno;
      				document.perpage.submit();
      			}
      		</script>
      		<div class='perpage' align='right' >";
      	if ($totalrecords > $limit)	{ // only show <<PREV NEXT>> row if $totalrecords is greater than $limit
      		$navstring .= "
      			<div><form name='perpage' method='post'>
      			<input type='hidden' name='pno' id='pno' value='' />
      			<input type='hidden' name='Search' id='Search' value='$Searchval'/>";
      		$navstring .= "<div align='right' style='padding-right:20px;padding-top:10px;'>";
      		if($page=='')
      			$page=0;
      		$blocksize=6;
      		if($pagenumber=='')
      			$pagenumber=$page;
      		if ($totalpages < $blocksize)	{
      			$blocksize = $totalpages;
      			$firstpage = 1;
      		}
      		elseif($pagenumber > $blocksize)	{
      			$firstpage = ($pagenumber-$blocksize) + 2;
      		}
      		elseif ($pagenumber == $blocksize)	{
      			$firstpage = 2;
      		}
      		else	{
      			$firstpage = 1;
      		}
      		$blocklimit = $blocksize + $firstpage;
      		for ($i=$firstpage;$i<$blocklimit;$i++)	{
      			if ($i == $pagenumber)	{
      				$navstring .= "&nbsp;<span class='NavPageFont'>$i</span> ";
      			}
      			else	{
      				if ($i <= $totalpages)	{
      					$nextoffset = $limit * ($i-1);
      					//$navstring .= "&nbsp;<a title='Page ". $i ." of ". $totalpages ."' class='WhiteFont' onmouseover=this.className='WhiteFont-Over'  onmouseout=this.className='WhiteFont' href='".$page_url."?pno=".$i."&Search=".$Search."'>$i</a> ";
      					$navstring .= "&nbsp;<a title='Page ". $i ." of ". $totalpages ."' class='WhiteFont' onmouseover=this.className='WhiteFont-Over'  onmouseout=this.className='WhiteFont'  onclick=perpages('$i') >$i</a> ";
      				}
      			}
      		}
      		$navstring .= "</div></div></form>";
      	}
      	return $navstring .= "</div>";
      }
      ?>

      ¡Ojo! ¡Sé que en el código veréis que hay cosas que no se cierran y tal, lo que pasa es que he recortado partes para que quepa!

    • Tengo un problema con mi theme, y es que no funciona la paginación. Cuando pulso en la «página 2» por ejemplo, se mantiene en la primera página y no cambia. He estado leyendo otros temas donde se dice que puede ser por el query_posts, pero la verdad es que no se donde modificar y como, a ver si me podéis echar una mano.

      El index.php de mi theme donde aparece el código que se debería modificar es este:

      <div id="main-recent">
      		<?php global $query_string;
      		if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat");
      		else query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>
      		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      			<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
      		<?php endwhile; ?>
      			<div class="clear"></div>
      			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
      			else { ?>
      				 <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
      			<?php } ?>
      		<?php else : ?>
      			<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
      		<?php endif; wp_reset_query(); ?>
      	</div>

      Saludos y gracias, ojala podáis ayudarme 🙁

    • hola gente estaba cambiando los textos del registro de mi web de inglés a español por ejemplo:
      -ingrese un nombre de usuario
      -ingrese su dirección de correo electrónico

      todo eso que viene en inglés lo estaba poniendo en español y cuando le di guardar y puse el registro para ver como quedó y me salió este mensaje

      Parse error: syntax error, unexpected T_STRING in /home/…/public_html/wp-login.php on line 367

      y nose cual es el error y la línea 367 ni la he tocado les dejo todo el código del wp-login.php

      <?php
      /**
       * WordPress User Page
       *
       * Handles authentication, registering, resetting passwords, forgot password,
       * and other user handling.
       *
       * @package WordPress
       */
      
      /** Make sure that the WordPress bootstrap has run before continuing. */
      require( dirname(__FILE__) . '/wp-load.php' );
      
      // Redirect to https login if forced to use SSL
      if ( force_ssl_admin() && !is_ssl() ) {
      	if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
      		wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
      		exit();
      	} else {
      		wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
      		exit();
      	}
      }
      
      /**
       * Outputs the header for the login page.
       *
       * @uses do_action() Calls the 'login_head' for outputting HTML in the Log In
       *		header.
       * @uses apply_filters() Calls 'login_headerurl' for the top login link.
       * @uses apply_filters() Calls 'login_headertitle' for the top login title.
       * @uses apply_filters() Calls 'login_message' on the message to display in the
       *		header.
       * @uses $error The error global, which is checked for displaying errors.
       *
       * @param string $title Optional. WordPress Log In Page title to display in
       *		<title/> element.
       * @param string $message Optional. Message to display in header.
       * @param WP_Error $wp_error Optional. WordPress Error Object
       */
      function login_header($title = 'Log In', $message = '', $wp_error = '') {
      	global $error, $is_iphone, $interim_login, $current_site;
      
      	// Don't index any of these forms
      	add_action( 'login_head', 'wp_no_robots' );
      
      	if ( empty($wp_error) )
      		$wp_error = new WP_Error();
      
      	// Shake it!
      	$shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );
      	$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );
      
      	if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )
      		add_action( 'login_head', 'wp_shake_js', 12 );
      
      	?>
      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
      <head>
      	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
      	<title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
      <?php
      	wp_admin_css( 'wp-admin', true );
      	wp_admin_css( 'colors-fresh', true );
      
      	if ( $is_iphone ) { ?>
      	<meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
      	<style type="text/css" media="screen">
      	.login form, .login .message, #login_error { margin-left: 0px; }
      	.login #nav, .login #backtoblog { margin-left: 8px; }
      	.login h1 a { width: auto; }
      	#login { padding: 20px 0; }
      	</style>
      <?php
      	}
      
      	do_action( 'login_enqueue_scripts' );
      	do_action( 'login_head' ); ?>
      </head>
      <body class="login">
      <?php   if ( !is_multisite() ) { ?>
      <div id="login"><h1><a href="<?php echo esc_url( apply_filters('login_headerurl', 'http://wordpress.org/') ); ?>" title="<?php echo esc_attr( apply_filters('login_headertitle', __( 'Powered by WordPress' ) ) ); ?>"><?php bloginfo('name'); ?></a></h1>
      <?php   } else { ?>
      <div id="login"><h1><a href="<?php echo esc_url( apply_filters('login_headerurl', network_home_url() ) ); ?>" title="<?php echo esc_attr( apply_filters('login_headertitle', $current_site->site_name ) ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
      <?php   }
      
      	$message = apply_filters('login_message', $message);
      	if ( !empty( $message ) ) echo $message . "\n";
      
      	// In case a plugin uses $error rather than the $wp_errors object
      	if ( !empty( $error ) ) {
      		$wp_error->add('error', $error);
      		unset($error);
      	}
      
      	if ( $wp_error->get_error_code() ) {
      		$errors = '';
      		$messages = '';
      		foreach ( $wp_error->get_error_codes() as $code ) {
      			$severity = $wp_error->get_error_data($code);
      			foreach ( $wp_error->get_error_messages($code) as $error ) {
      				if ( 'message' == $severity )
      					$messages .= '	' . $error . "<br />\n";
      				else
      					$errors .= '	' . $error . "<br />\n";
      			}
      		}
      		if ( !empty($errors) )
      			echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n";
      		if ( !empty($messages) )
      			echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";
      	}
      } // End of login_header()
      
      /**
       * Outputs the footer for the login page.
       *
       * @param string $input_id Which input to auto-focus
       */
      function login_footer($input_id = '') {
      	?>
      	<p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Are you lost?' ); ?>"><?php printf( __( '&larr; Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p>
      	</div>
      
      <?php if ( !empty($input_id) ) : ?>
      <script type="text/javascript">
      try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){}
      if(typeof wpOnload=='function')wpOnload();
      </script>
      <?php endif; ?>
      
      <?php do_action('login_footer'); ?>
      <div class="clear"></div>
      </body>
      </html>
      <?php
      }
      
      function wp_shake_js() {
      	global $is_iphone;
      	if ( $is_iphone )
      		return;
      ?>
      <script type="text/javascript">
      addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
      function s(id,pos){g(id).left=pos+'px';}
      function g(id){return document.getElementById(id).style;}
      function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}}
      addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);});
      </script>
      <?php
      }
      
      /**
       * Handles sending password retrieval email to user.
       *
       * @uses $wpdb WordPress Database object
       *
       * @return bool|WP_Error True: when finish. WP_Error on error
       */
      function retrieve_password() {
      	global $wpdb, $current_site;
      
      	$errors = new WP_Error();
      
      	if ( empty( $_POST['user_login'] ) ) {
      		$errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));
      	} else if ( strpos( $_POST['user_login'], '@' ) ) {
      		$user_data = get_user_by( 'email', trim( $_POST['user_login'] ) );
      		if ( empty( $user_data ) )
      			$errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.'));
      	} else {
      		$login = trim($_POST['user_login']);
      		$user_data = get_user_by('login', $login);
      	}
      
      	do_action('lostpassword_post');
      
      	if ( $errors->get_error_code() )
      		return $errors;
      
      	if ( !$user_data ) {
      		$errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
      		return $errors;
      	}
      
      	// redefining user_login ensures we return the right case in the email
      	$user_login = $user_data->user_login;
      	$user_email = $user_data->user_email;
      
      	do_action('retreive_password', $user_login);  // Misspelled and deprecated
      	do_action('retrieve_password', $user_login);
      
      	$allow = apply_filters('allow_password_reset', true, $user_data->ID);
      
      	if ( ! $allow )
      		return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
      	else if ( is_wp_error($allow) )
      		return $allow;
      
      	$key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s", $user_login));
      	if ( empty($key) ) {
      		// Generate something random for a key...
      		$key = wp_generate_password(20, false);
      		do_action('retrieve_password_key', $user_login, $key);
      		// Now insert the new md5 key into the db
      		$wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login));
      	}
      	$message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n";
      	$message .= network_site_url() . "\r\n\r\n";
      	$message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
      	$message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n";
      	$message .= __('To reset your password, visit the following address:') . "\r\n\r\n";
      	$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
      
      	if ( is_multisite() )
      		$blogname = $GLOBALS['current_site']->site_name;
      	else
      		// The blogname option is escaped with esc_html on the way into the database in sanitize_option
      		// we want to reverse this for the plain text arena of emails.
      		$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
      
      	$title = sprintf( __('[%s] Password Reset'), $blogname );
      
      	$title = apply_filters('retrieve_password_title', $title);
      	$message = apply_filters('retrieve_password_message', $message, $key);
      
      	if ( $message && !wp_mail($user_email, $title, $message) )
      		wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') );
      
      	return true;
      }
      
      /**
       * Retrieves a user row based on password reset key and login
       *
       * @uses $wpdb WordPress Database object
       *
       * @param string $key Hash to validate sending user's password
       * @param string $login The user login
       *
       * @return object|WP_Error
       */
      function check_password_reset_key($key, $login) {
      	global $wpdb;
      
      	$key = preg_replace('/[^a-z0-9]/i', '', $key);
      
      	if ( empty( $key ) || !is_string( $key ) )
      		return new WP_Error('invalid_key', __('Invalid key'));
      
      	if ( empty($login) || !is_string($login) )
      		return new WP_Error('invalid_key', __('Invalid key'));
      
      	$user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_activation_key = %s AND user_login = %s", $key, $login));
      
      	if ( empty( $user ) )
      		return new WP_Error('invalid_key', __('Invalid key'));
      
      	return $user;
      }
      
      /**
       * Handles resetting the user's password.
       *
       * @uses $wpdb WordPress Database object
       *
       * @param string $key Hash to validate sending user's password
       */
      function reset_password($user, $new_pass) {
      	do_action('password_reset', $user, $new_pass);
      
      	wp_set_password($new_pass, $user->ID);
      
      	wp_password_change_notification($user);
      }
      
      /**
       * Handles registering a new user.
       *
       * @param string $user_login User's username for logging in
       * @param string $user_email User's email address to send password and add
       * @return int|WP_Error Either user's ID or error on failure.
       */
      function register_new_user( $user_login, $user_email ) {
      	$errors = new WP_Error();
      
      	$sanitized_user_login = sanitize_user( $user_login );
      	$user_email = apply_filters( 'user_registration_email', $user_email );
      
      	// Check the username
      	if ( $sanitized_user_login == '' ) {
      		$errors->add( 'empty_username', __( '<strong>ERROR</strong>: Por favor, introduzca un nombre de usuario.' ) );
      	} elseif ( ! validate_username( $user_login ) ) {
      		$errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Este nombre de usuario no es válido, está utilizando caracteres no válidos. Por favor, introduzca un nombre de usuario.' ) );
      		$sanitized_user_login = '';
      	} elseif ( username_exists( $sanitized_user_login ) ) {
      		$errors->add( 'username_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ) );
      	}
      
      	// Check the e-mail address
      	if ( $user_email == '' ) {
      		$errors->add( 'empty_email', __( '<strong>ERROR</strong>: Por favor escriba su dirección de correo electrónico.' ) );
      	} elseif ( ! is_email( $user_email ) ) {
      		$errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ) );
      		$user_email = '';
      	} elseif ( email_exists( $user_email ) ) {
      		$errors->add( 'email_exists', __( '<strong>ERROR</strong>: Esta dirección de correo electrónico ya está registrado, por favor elija otra.' ) );
      	}
      
      	do_action( 'register_post', $sanitized_user_login, $user_email, $errors );
      
      	$errors = apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );
      
      	if ( $errors->get_error_code() )
      		return $errors;
      
      	$user_pass = wp_generate_password( 12, false);
      	$user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email );
      	if ( ! $user_id ) {
      		$errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );
      		return $errors;
      	}
      
      	update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag.
      
      	wp_new_user_notification( $user_id, $user_pass );
      
      	return $user_id;
      }
      
      //
      // Main
      //
      
      $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login';
      $errors = new WP_Error();
      
      if ( isset($_GET['key']) )
      	$action = 'resetpass';
      
      // validate action so as to default to the login screen
      if ( !in_array($action, array('logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login'), true) && false === has_filter('login_form_' . $action) )
      	$action = 'login';
      
      nocache_headers();
      
      header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
      
      if ( defined('RELOCATE') ) { // Move flag is set
      	if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
      		$_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
      
      	$schema = is_ssl() ? 'https://' : 'http://';
      	if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') )
      		update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
      }
      
      //Set a cookie now to see if they are supported by the browser.
      setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
      if ( SITECOOKIEPATH != COOKIEPATH )
      	setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
      
      // allow plugins to override the default actions, and to add extra actions if they want
      do_action( 'login_init' );
      do_action( 'login_form_'login']) ? stripslashes($_POST['user_login']) : '';
      
      ?>
      
      <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
      	<p>
      		<label for="user_login" ><?php _e('Username or E-mail:') ?><br />
      		<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
      	</p>
      <?php do_action('lostpassword_form'); ?>
      	<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
      	<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p>
      </form>
      
      <p id="nav">
      <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
      <?php if ( get_option( 'users_can_register' ) ) : ?>
       | <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a>
      <?php endif; ?>
      </p>
      
      <?php
      login_footer('user_login');
      break;
      
      case 'resetpass' :
      case 'rp' :
      	$user = check_password_reset_key($_GET['key'], $_GET['login']);
      
      	if ( is_wp_error($user) ) {
      		wp_redirect( site_url('wp-login.php?action=lostpassword&error=invalidkey') );
      		exit;
      	}
      
      	$errors = '';
      
      	if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] ) {
      		$errors = new WP_Error('password_reset_mismatch', __('The passwords do not match.'));
      	} elseif ( isset($_POST['pass1']) && !empty($_POST['pass1']) ) {
      		reset_password($user, $_POST['pass1']);
      		login_header( __( 'Password Reset' ), '<p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p>' );
      		login_footer();
      		exit;
      	}
      
      	wp_enqueue_script('utils');
      	wp_enqueue_script('user-profile');
      
      	login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
      
      ?>
      <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass&key=' . urlencode( $_GET['key'] ) . '&login=' . urlencode( $_GET['login'] ), 'login_post' ) ); ?>" method="post">
      	<input type="hidden" id="user_login" value="<?php echo esc_attr( $_GET['login'] ); ?>" autocomplete="off" />
      
      	<p>
      		<label for="pass1"><?php _e('New password') ?><br />
      		<input type="password" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" /></label>
      	</p>
      	<p>
      		<label for="pass2"><?php _e('Confirm new password') ?><br />
      		<input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /></label>
      	</p>
      
      	<div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div>
      	<p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p>
      
      	<br class="clear" />
      	<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Reset Password'); ?>" tabindex="100" /></p>
      </form>
      
      <p id="nav">
      <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
      <?php if ( get_option( 'users_can_register' ) ) : ?>
       | <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a>
      <?php endif; ?>
      </p>
      
      <?php
      login_footer('user_pass');
      break;
      
      case 'register' :
      	if ( is_multisite() ) {
      		// Multisite uses wp-signup.php
      		wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) );
      		exit;
      	}
      
      	if ( !get_option('users_can_register') ) {
      		wp_redirect( site_url('wp-login.php?registration=disabled') );
      		exit();
      	}
      
      	$user_login = '';
      	$user_email = '';
      	if ( $http_post ) {
      		$user_login = $_POST['user_login'];
      		$user_email = $_POST['user_email'];
      		$errors = register_new_user($user_login, $user_email);
      		if ( !is_wp_error($errors) ) {
      			$redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
      			wp_safe_redirect( $redirect_to );
      			exit();
      		}
      	}
      
      	$redirect_to = apply_filters( 'registration_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );
      	login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
      ?>
      
      <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post">
      	<p>
      		<label for="user_login"><?php _e('Username') ?><br />
      		<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
      	</p>
      	<p>
      		<label for="user_email"><?php _e('E-mail') ?><br />
      		<input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" tabindex="20" /></label>
      	</p>
      <?php do_action('register_form'); ?>
      	<p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
      	<br class="clear" />
      	<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
      	<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /></p>
      </form>
      
      <p id="nav">
      <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
      <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ) ?>"><?php _e( 'Lost your password?' ); ?></a>
      </p>
      
      <?php
      login_footer('user_login');
      break;
      
      case 'login' :
      default:
      	$secure_cookie = '';
      	$interim_login = isset($_REQUEST['interim-login']);
      
      	// If the user wants ssl but the session is not ssl, force a secure cookie.
      	if ( !empty($_POST['log']) && !force_ssl_admin() ) {
      		$user_name = sanitize_user($_POST['log']);
      		if ( $user = get_user_by('login', $user_name) ) {
      			if ( get_user_option('use_ssl', $user->ID) ) {
      				$secure_cookie = true;
      				force_ssl_admin(true);
      			}
      		}
      	}
      
      	if ( isset( $_REQUEST['redirect_to'] ) ) {
      		$redirect_to = $_REQUEST['redirect_to'];
      		// Redirect to https if user wants ssl
      		if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
      			$redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
      	} else {
      		$redirect_to = admin_url();
      	}
      
      	$reauth = empty($_REQUEST['reauth']) ? false : true;
      
      	// If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure
      	// cookie and redirect back to the referring non-secure admin page.  This allows logins to always be POSTed over SSL while allowing the user to choose visiting
      	// the admin via http or https.
      	if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
      		$secure_cookie = false;
      
      	$user = wp_signon('', $secure_cookie);
      
      	$redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);
      
      	if ( !is_wp_error($user) && !$reauth ) {
      		if ( $interim_login ) {
      			$message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
      			login_header( '', $message ); ?>
      			<script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script>
      			<p class="alignright">
      			<input type="button" class="button-primary" value="<?php esc_attr_e('Close'); ?>" onclick="window.close()" /></p>
      			</div></body></html>
      <?php		exit;
      		}
      
      		if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
      			// If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
      			if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) )
      				$redirect_to = user_admin_url();
      			elseif ( is_multisite() && !$user->has_cap('read') )
      				$redirect_to = get_dashboard_url( $user->ID );
      			elseif ( !$user->has_cap('edit_posts') )
      				$redirect_to = admin_url('profile.php');
      		}
      		wp_safe_redirect($redirect_to);
      		exit();
      	}
      
      	$errors = $user;
      	// Clear errors if loggedout is set.
      	if ( !empty($_GET['loggedout']) || $reauth )
      		$errors = new WP_Error();
      
      	// If cookies are disabled we can't log in even with a valid user+pass
      	if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
      		$errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
      
      	// Some parts of this script use the main login form to display a message
      	if		( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] )
      		$errors->add('loggedout', __('You are now logged out.'), 'message');
      	elseif	( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
      		$errors->add('registerdisabled', __('User registration is currently not allowed.'));
      	elseif	( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
      		$errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
      	elseif	( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
      		$errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
      	elseif	( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
      		$errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
      	elseif	( $interim_login )
      		$errors->add('expired', __('Your session has expired. Please log-in again.'), 'message');
      
      	// Clear any stale cookies.
      	if ( $reauth )
      		wp_clear_auth_cookie();
      
      	login_header(__('Log In'), '', $errors);
      
      	if ( isset($_POST['log']) )
      		$user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : '';
      	$rememberme = ! empty( $_POST['rememberme'] );
      ?>
      
      <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
      	<p>
      		<label for="user_login"><?php _e('Username') ?><br />
      		<input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" tabindex="10" /></label>
      	</p>
      	<p>
      		<label for="user_pass"><?php _e('Password') ?><br />
      		<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
      	</p>
      <?php do_action('login_form'); ?>
      	<p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
      	<p class="submit">
      		<input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
      <?php	if ( $interim_login ) { ?>
      		<input type="hidden" name="interim-login" value="1" />
      <?php	} else { ?>
      		<input type="hidden" name="redirect_to" value="<?

      el link de mi sitio web

    • Hola

      Estoy armando un scroll para un cliente y tengo un par de problemas. En la home deberían aparecer 20 entradas (tal como está configurado en el administrador) y no debería aparecer la navegación inferior. Al instalar un slider que me piden, modifica los parámetros y me muestra solo 6 entradas y la navegación.

      Paso el código de la home y la función del plugin que me genera conflicto a ver si alguno de ustedes me puede dar una idea.

      El scroll debe ir abajo de los feature post y antes de los post regulares. (cuando lo pongo antes de los feature post, anda perfecto!)

      Acá la función del problema:

      function vsrp()
      {

      global $wpdb;

      $num_user = get_option(‘vsrp_select_num_user’);
      $dis_num_user = get_option(‘vsrp_dis_num_user’);

      $dis_num_height = get_option(‘vsrp_dis_num_height’);
      $vsrp_select_categories = get_option(‘vsrp_select_categories’);
      $vsrp_select_orderby = get_option(‘vsrp_select_orderby’);
      $vsrp_select_order = get_option(‘vsrp_select_order’);

      if(!is_numeric($num_user))
      {
      $num_user = 20;
      }
      if(!is_numeric($dis_num_height))
      {
      $dis_num_height = 25;
      }
      if(!is_numeric($dis_num_user))
      {
      $dis_num_user = 20;
      }

      $saSql = query_posts(‘cat=4191&showposts=5’);

      //$vsrp_data = $wpdb->get_results(«SELECT ID,post_title,post_date FROM «. $wpdb->prefix . «posts WHERE 1 and post_type=’post’ and post_status = ‘publish’ order by ID desc limit 0, $num_user»);

      $vsrp_data = $saSql;
      $vsrp_html = «»;
      $vsrp_x = «»;
      if ( ! empty($vsrp_data) )
      {
      $vsrp_count = 0;
      foreach ( $vsrp_data as $vsrp_data )
      {
      $vsrp_post_title = $vsrp_data->post_title;

      $get_permalink = get_permalink($vsrp_data->ID);

      $vsrp_post_title = substr($vsrp_post_title, 0, 130);

      $dis_height = $dis_num_height.»px»;
      $vsrp_html = $vsrp_html . «<div class=’vsrp_div’ style=’padding:2px 0px 2px 0px;’>»;
      $vsrp_html = $vsrp_html . «– $vsrp_post_title
      «;
      $vsrp_html = $vsrp_html . «</div>»;

      $vsrp_post_title = mysql_real_escape_string(trim($vsrp_post_title));
      $get_permalink = mysql_real_escape_string($get_permalink);
      $vsrp_x = $vsrp_x . «vsrp_array[$vsrp_count] = ‘<div class=\’vsrp_div\’ style=\’padding:2px 0px 2px 0px;\’>$vsrp_post_title</div>
      ‘; «;
      $vsrp_count++;

      }

      $dis_num_height = $dis_num_height + 4;
      if($vsrp_count >= $dis_num_user)
      {
      $vsrp_count = $dis_num_user;
      $vsrp_height = ($dis_num_height * $dis_num_user);
      }
      else
      {
      $vsrp_count = $vsrp_count;
      $vsrp_height = ($vsrp_count*$dis_num_height);
      }
      $vsrp_height1 = $dis_num_height.»px»;
      ?>
      <div style=»padding-top:8px;padding-bottom:8px;»>
      <div style=»text-align:left;vertical-align:middle;text-decoration: none;overflow: hidden; position: relative; margin-left: 1px; height: <?php echo $vsrp_height1; ?>;» id=»vsrp_Holder»>
      <?php echo $vsrp_html; ?>
      </div>
      </div>
      <script type=»text/javascript»>
      var vsrp_array = new Array();
      var vsrp_obj = »;
      var vsrp_scrollPos = »;
      var vsrp_numScrolls = »;
      var vsrp_heightOfElm = ‘<?php echo $dis_num_height; ?>’; // Height of each element (px)
      var vsrp_numberOfElm = ‘<?php echo $vsrp_count; ?>’;
      var vsrp_scrollOn = ‘true’;
      function vsrp_createscroll()
      {
      <?php echo $vsrp_x; ?>
      vsrp_obj = document.getElementById(‘vsrp_Holder’);
      vsrp_obj.style.height = (vsrp_numberOfElm * vsrp_heightOfElm) + ‘px’; // Set height of DIV
      vsrp_content();

      }
      </script>
      <script type=»text/javascript»>
      vsrp_createscroll();
      </script>

      <?php

      }
      else
      {
      echo «<div style=’padding-bottom:5px;padding-top:5px;’>No data available!</div>»;
      }

      }

      Acá la home que no anda.

      `
      <?php get_header(); ?>
      <?php if (is_paged()) $is_paged = true; ?>
      <?php if ( get_option(‘bizzthemes_one_column_featposts’) ) { ?>

      <?php $imgwidthf = 600;
      $imgheightf = 250; ?>

      <?php } else { ?>

      <?php $imgwidthf = 278;
      $imgheightf = 150; ?>

      <?php } ?>

      <?php if ( get_option(‘bizzthemes_one_column_posts’) ) { ?>

      <?php $imgwidth = 90;
      $imgheight = 75; ?>

      <?php } else { ?>

      <?php $imgwidth = 90;
      $imgheight = 75; ?>

      <?php } ?>

      <?php if ( get_option(‘bizzthemes_about_blog’) <> «» ) { ?>

      <div id=»header-about»>

      <h2><?php echo stripslashes(get_option(‘bizzthemes_about_blog’)); ?></h2>

      </div>

      <?php } ?>

      <?php if ( !$is_paged ) { } else { ?>

      <div class=»pagination»>

      <?php if (function_exists(‘wp_pagenavi’)) { ?><?php wp_pagenavi(); ?><?php } ?>

      </div>

      <div class=»fix»></div>

      <?php } ?>

      <div class=»<?php if ($is_paged || get_option(‘bizzthemes_one_column_posts’ && !$is_paged )) { echo ‘full_posts’; } else { echo ‘boxed_posts’; } ?> <?php if ($is_paged || get_option(‘bizzthemes_one_column_featposts’)) { echo ‘full_featposts’; } else { echo ‘boxed_featposts’; } ?> blog»>

      <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts(«cat=-«.$GLOBALS[vid_cat].»&paged=$paged»); ?>
      <?php

      ?>

      <?php if (have_posts()) : $count = 15; ?>

      <?php while (have_posts()) : the_post(); $postcount++; ?>

      <!– Featured Posts: START –>

      <?php if ( $postcount <= get_option(‘bizzthemes_featured_entries’) ) { ?>

      <div class=»featured_post feat_background fl»>

      <?php if ( get_post_meta($post->ID,’image’, true) ) { ?>

      » href=»<?php the_permalink() ?>»><img src=»<?php echo bloginfo(‘template_url’); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, «image», $single = true); ?>&h=<?php echo $imgheightf; ?>&w=<?php echo $imgwidthf; ?>&zc=1&q=80″ alt=»<?php the_title(); ?>» class=»fll» style=»margin-top:5px;» />

      <?php if ( get_option(‘bizzthemes_relative_date’) ) { ?>

      <span class=»date_bg»><?php relativeDate(get_the_time(‘YmdHis’)) ?></span>

      <?php } else { ?>

      <span class=»date_bg»><?php the_time(‘d M y’); ?></span>

      <?php } ?>

      <?php } ?>

      <div class=»featured_content»>

      <h2>

      » href=»<?php the_permalink() ?>» rel=»bookmark»><?php the_title(); ?>

      <?php if ( get_option( ‘bizzthemes_commentcount’ )) { ?>

      <span class=»comments-feat»>- <?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span>

      <?php } ?>

      </h2>

      </div>

      <div class=»fix»></div>

      </div>

      <?php continue; } ?>

      <!– Split between Featured entries and Rest: START –>

      <?php if (( get_option(‘bizzthemes_featured_entries’) + 1) == $postcount && !$is_paged ) { ?>

      <div class=»fix»><!—-></div>

      <!– AdSense Main: START –>

      <?php if (get_option(‘bizzthemes_main_adsense’) <> «») { ?>

      <div class=»adsense-468″>

      <?php echo stripslashes(get_option(‘bizzthemes_main_adsense’)); ?>

      </div>

      <?php } ?>

      <!– AdSense Main: END –>

      <!– Recuadro slider –>

      <div class=»recuadro»> <div style=»float:left;»>
      <?php if ( function_exists( ‘get_smooth_slider’ ) ) { get_smooth_slider(); } ?>
      </div><div style=»float:right; width:300px; height:320px; «> <div style=»font-family:georgia arial; font-size:15px; margin:12px»>De Nuestros Blogs </div>
      <!– Este da problemas –>
      <?php if (function_exists( ‘vsrp’ ) ) { vsrp(); } ?>
      </div></div>

      <div class=»fix»><!—-></div>
      <!– FIN Recuadro slider –>

      <!– AdSense Main: END –>
      <?php } ?>

      <!– Split between Featured entries and Rest: END –>

      <!– Featured Posts: END –>

      <!– Rest of Entries: START –>

      <div class=»post»>

      <h2>» href=»<?php the_permalink() ?>» rel=»bookmark»><?php the_title(); ?></h2>

      <div class=»date-comments»>

      <?php if ( get_option(‘bizzthemes_relative_date’) ) { ?>

      <p class=»fl»><?php relativeDate(get_the_time(‘YmdHis’)) ?></p>

      <?php } else { ?>

      <p class=»fl»><?php the_time(‘F j, Y’); ?></p>

      <?php } ?>

      <?php if ( get_option( ‘bizzthemes_commentcount’ )) { ?>

      <p class=»fr»><span class=»comments»><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span></p>

      <?php } ?>

      </div>

      <div class=»fix»></div>

      <?php if ( get_post_meta($post->ID,’image’, true) ) { ?>

      » href=»<?php the_permalink() ?>»><img src=»<?php echo bloginfo(‘template_url’); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, «image», $single = true); ?>&h=<?php echo $imgheight; ?>&w=<?php echo $imgwidth; ?>&zc=1&q=80″ alt=»<?php the_title(); ?>» class=»fll» style=»margin-top:5px; margin-right:10px» />

      <?php } ?>

      <p><?php echo strip_tags(get_the_excerpt(), ‘‘); ?></p>

      </div>

      <!– Rest of Entries: END –>

      <?php if (!get_option(‘bizzthemes_one_column_posts’)) { $count++; if ($count == 2) { $count = 0; ?><div class=»fix»></div><?php } } ?>

      <?php endwhile;

      ?>

      <?php endif; ?>

      <div class=»fix»></div>

      <div class=»pagination»>

      <?php if (function_exists(‘wp_pagenavi’)) { ?><?php wp_pagenavi(); ?><?php } ?>

      </div>

      </div>

      </div>

      <?php get_sidebar(); ?>

      <?php get_footer(); ?>

    • Muy buenas.

      Llevo ya tiempo en wordpress y hasta ahora no he necesitado ayuda en nada. El problema es que he instalado un tema que creo que viene preparado para una versión antigua y me da problemas con esta versión de wordpress.

      El caso es que el título de un post sale a la derecha del anterior. Lo podeis ver aquí: http://www.flisflis.es

      Os pongo el código del index.php por si me podeis ayudar a ver cómo solucionarlo.

      <?php get_header(); ?>
      
      <div id="blog">
      	<div id="main">
      		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      
      		<div id="post-<?php the_ID(); ?>">
      			<a class="comments-link" href="<?php the_permalink() ?>#comments" title="Comments"><?php comments_number('0','1','%'); ?></a>
      
      			<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
      			<p class="post-meta">Posted on <?php the_time('F j, Y'); ?> by <?php the_author(); ?></p>
      
      			<div <?php post_class('') ?>>
      				<a href="<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 1000,1000 ), false, '' ); echo $src[0]; ?>" class="fancy" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a>
      				<?php the_content('... Continue Reading'); ?>
      
      			</div>
      		</div> <!-- post -->
      
      		<?php endwhile; else : ?>
      
      		<div id="nothing-here">
      			<h2>Whoops!!! Nothing Here by That Name</h2>
      
      			<div class="page">
      				<p>Very sorry, but what you are looking for isn't here. Maybe you should try one of the links below.</p>
      
      				<h4 class="not-here">Find Posts by Title:</h4>
      				<ul>
      				<?php query_posts('&showposts=1000&orderby=title&order=asc'); if (have_posts()) : while (have_posts()) : the_post(); ?>
      					<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
      				<?php endwhile; endif; ?>
      				</ul>
      
      				<h4 class="not-here">Find Posts by Month:</h4>
      				<ul>
      					<?php wp_get_archives('type=monthly'); ?>
      				</ul>
      
      				<h4 class="not-here">Find Posts by Category:</h4>
      				<ul>
      					<?php wp_list_categories('title_li='); ?>
      				</ul>
      
      				<h4 class="not-here">Maybe a Page:</h4>
      				<ul>
      					<?php wp_list_pages('title_li='); ?>
      				</ul>
      			</div> <!-- page -->
      		</div> <!-- nothing-here -->
      
      		<?php endif; ?>
      
      		<?php if(function_exists('sf_pagenavi')) { sf_pagenavi('', '', '', '', 20, false);} ?>
      	</div> <!-- main -->
      
      	<?php get_sidebar(); ?>
      </div> <!-- blog -->
      
      <?php get_footer(); ?>

      Muchas gracias por la futura/posible ayuda 🙂

    Podrías probar el siguiene plugin:

    http://wordpress.org/extend/plugins/display-posts-shortcode/

    Ese te da un shortcode para poder listar los post de una determinada categoria, tag, etc.

    Si te atreves a jugar un poco con el código con un loop puedes conseguir lo que quieres:

    <?php query_posts('category_name=curso&showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
            <li><a href="<?php the_permalink(); ?>">
              <?php the_title(); ?>
              </a>  </li>
            <?php endwhile; ?>

    `
    Eso te da una lista de los títulos de 5 posts en la categoría curso con el link a cada post.

    • es muy raro.. yo utilizo el siguiente codigo para llamar mis categorias de la base de dato:

      <h1 class="entry-title"><span class="subtitulos-secciones">Tiempo Libre</span> &raquo; Minibus</h1>
      			<?php $the_query = new WP_Query('category_name=minibus&showposts=-1');
      		                while ($the_query->have_posts()) : $the_query->the_post();
      		                $do_not_duplicate = $post->ID; ?>
                  <div id="container-search-pages">
      		                <!-- #thumbnail <?php the_post_thumbnail('large'); ?> -->
                              <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>" class="numeros-de-utilidad-title"><?php the_title(); ?></a></strong>
                              <?php the_content(); ?>
                  </div>
                              <?php endwhile;?>

      utilizo este codigo en varios page mio y lo repito varias veces en el mismo page sin problema. de esta manera yo llamo diferentes categorias en una misma pagina..

      pero en una pagina especial, me tira el siguiente error:

      Parse error: syntax error, unexpected $end in /home/elasesor/public_html/yerbabuena/wp-content/themes/twentyten/page-tiempo-libre.php on line 80

      es raro, porque cuando repito el codigo 4 veces, funcionana, pero si agrego una vez mas este llamado, me tira el error!

      no hay señal de hackeo, y el error parse por lo que busque dicen que tengo cerrado mal un bracket } … pero tampoco es el caso, ya que si utilizo la combinacion esa 4 veces funciona perfecto, pero si agrego una quinta llamada, tira el error ese…

      esta jodido esto, alguna idea?

      la linea que dice que tiene error es la siguiente:

      <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>" class="numeros-de-utilidad-title"><?php the_title(); ?></a></strong>

      ya desactive todos los plugins y no hace diferencia absoluta.. gracias por su respuesta

    Iniciador del debate Marcos071

    (@marcos071)

    Hola _DorsVenabili, gracias por la ayuda, pero ese no creo que sea el problema, ya que la propiedad del «display:none/block» lo hace en jq, y en tiempo real va cambiando a medida que rota las imágenes.

    Aquí te paso una img para que cheques:
    http://img7.imageshack.us/img7/5492/71617909.jpg

    Lo que no genera es la propiedad src, que por ende no sabe a qué imagen recurrir.

    Busqué la parte del código donde genera el slide, y aquí está:
    http://img844.imageshack.us/img844/8030/consulta5.png

    <div id="sliderw">
    <div id="slider">
    <?php
    $slidecat1 = get_option('swt_slide_category');
    $slidecat = get_cat_ID($slidecat1);
    $slidecount = get_option('swt_slide_count');
    $my_query = new WP_Query('cat= '. $slidecat .'&showposts='.$slidecount.'');
    while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    ?>
    <a href="<?php the_permalink() ?>"><img src="<?php echo get_post_meta($post->ID, 'slide', $single = true); ?>" alt="<?php the_title() ?>"
    title="<span class='tit'><?php the_title(); ?></span> <br /><span class='desc'> <?php truncate_post(150, true); ?></span>" /></a>
    <?php endwhile; ?>
    </div>
    </div>
    <div id="slider-shadow"></div>
Viendo 15 resultados - del 196 al 210 (de un total de 215)