Cómo mostrar contenido completo en lugar de resúmenes en la página principal

  • Autor Autor Facundo
  • Fecha de inicio Fecha de inicio
F

Facundo

Xi
Encontré un theme que me gusta mucho para un proyecto, pero el problema, es que en el index aparecen resúmenes en vez del contenido de una, y me puse a buscar otro theme, pero me gusta mucho el que encontré ahora.

Alguien sabrá que modificar en el index para que se muestren de una ? (o acortadas si le agrego un more...)

Index.php

PHP:
<?php get_header(); ?>
	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/carousel/stepcarousel.js"></script>
	<script type="text/javascript">
	
	stepcarousel.setup({
		galleryid: 'board_carusel', //id of carousel DIV
		beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
		panelclass: 'board_item', //class of panel DIVs each holding content
		autostep: {enable:true, moveby:1, pause:<?php echo FEATURED_SPEED*1000; ?>},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
	})
	
	</script>
	<div id="content" class="narrowcolumn">
	
	<div id="board">
		<h2>Featured Posts</h2>
		<div id="board_items">
			<div id="board_body">
				<div id="board_carusel">
					<div class="belt">
					<?php $coint_i = carousel_featured_posts(obwp_get_meta(SHORTNAME.'_featured_cat_id'), FEATURED_POSTS); ?>
					</div>
				</div>
			</div>
			<ul id="board_carusel_nav">
			<?php for($i=1;$i<=$coint_i; $i++) { ?>
				<li id="board_carusel_nav_<?php echo $i; ?>"><a <?php if($i==1) echo ' class="selected"'; ?> href="javascript:stepcarousel.stepTo('board_carusel', <?php echo $i; ?>)"><?php echo $i; ?></a></li>
			<?php } ?>
			</ul>
		</div>
	</div>

	<?php if (have_posts()) : ?>
	<div id="post_block">
		<?php $i=0; while (have_posts()) : the_post(); $i++; ?>

			<div class="post_box<?php if($i%2==0) echo ' post_box_right'; ?>" id="post-<?php the_ID(); ?>">
				<div class="post_box_cat">
					<?php
					foreach((get_the_category()) as $category) { 
						echo '<p><a href="'.get_category_link( $category->cat_ID ).'">'.$category->cat_name.'</a></p>';
						break;
					} 
					?> 
				</div>
				<div class="post_box_title">
					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
					<p>By <b><?php the_author() ?></b> | Posted on <?php the_time('d-m-Y') ?></p>
				</div>
				<div class="post_box_entry">
					<?php $thumb = obwp_getcustomfield('thumb', get_the_ID()); if(!empty($thumb)) : ?>
					<a href="<?php the_permalink() ?>"><img src="<?php echo $thumb; ?>" alt="<?php the_title_attribute(); ?>" /></a>
					<?php endif; ?>
					<p><?php the_content_limit(500); ?></p>
				</div>
			</div>

		<?php endwhile; ?>
	
		<?php 
		$next_page = get_next_posts_link('Previous'); 
		$prev_pages = get_previous_posts_link('Next');
		if(!empty($next_page) || !empty($prev_pages)) :
		?>
		<!-- navigation -->
		<div class="navigation">
			<?php if(!function_exists('wp_pagenavi')) : ?>
            <div class="alignleft"><?php echo $next_page; ?></div>
            <div class="alignright"><?php echo $prev_pages; ?></div>
            <?php else : wp_pagenavi(); endif; ?>
		</div>
		<!-- /navigation -->
		<?php endif; ?>
	</div>
	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>

	</div>
	<?php get_sidebar(); ?>

<?php get_footer(); ?>


Y por las dudas, este es el Single.php

PHP:
<?php get_header(); ?>

	<div id="content" class="narrowcolumn">
	<div class="post">

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<div id="post-<?php the_ID(); ?>">
                <div class="post_top">
                    <div class="post_title">
                        <h2><?php the_title(); ?></h2>
                    </div>
					<?php if($post->comment_count>0) : ?><div class="post_comm"><?php comments_popup_link('0', '1', '%'); ?></div><?php endif; ?>
					<div class="post_top_data">
						<p class="post_author">Posted by <b><?php the_author() ?></b> | <span class="post_date">Posted on <?php the_time('d-m-Y') ?></span></p>
						<p class="post_cats">Category : <span><?php the_category(', ') ?></span></p>
						<?php the_tags('<p class="post_tags">Tags: <span>', ', ', '</span></p>'); ?>
					</div>
                </div>
				<div class="entry">
					<?php
						$ad_post_text_300_250 = obwp_get_meta(SHORTNAME."_ad_post_text_300_250");
						if(!empty($ad_post_text_300_250))
						{
							echo '<div class="banner_left">'.$ad_post_text_300_250.'</div>';
						}
					?>
					<?php the_content('Contunue Reading',FALSE,''); ?>

					<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
					<?php
						$ad_footer_post_468_60 = obwp_get_meta(SHORTNAME."_ad_footer_post_468_60");
						if(!empty($ad_footer_post_468_60))
						{
							echo '<div class="banner">'.$ad_footer_post_468_60.'</div>';
						}
					?>
				</div>
                <div class="postmetadata">
                	<div class="postmetadata_top">
                    	Don't miss a single post! <a href="<?php bloginfo('rss2_url'); ?>">Subscribe to my RSS feed</a>
                    </div>
                	<div class="postmetadata_but">
                    	<?php include(TEMPLATEPATH."/templates/bookmarks.php"); ?>
                    </div>
                	<div class="postmetadata_end">
						Posted by : <b class="red"><?php the_author() ?> |</b> <a href="<?php the_permalink() ?>#respond">Leave a Comment</a>  | <b class="red"><?php if(function_exists('wp_email')) { email_link(); } ?></b>
                    </div>
                </div>
			</div>
			
		<?php if(function_exists('related_posts')) { ?><div id="related_posts"><?php related_posts(); ?></div><?php } ?>

	<?php comments_template(); ?>

	<?php endwhile; else: ?>

		<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

	</div>
	</div>
	<?php get_sidebar(); ?>

<?php get_footer(); ?>


Me parece que ya he visto que en algún momento alguien necesitó algo parecido, pero no me acuerdo.


El theme se llama Grey Mag

Saludos!
 
No se mucho de esto, pero supongo que el problema esta en esta linea del index.php

PHP:
<?php the_content_limit(500); ?>

Supongo debe ser asi:

PHP:
<?php the_content(); ?>

Espero sirva 😉
 
Arregló algo eso, pero aún así se muestra en una caja como resumen....
 
Estoy totalmente de acuerdo con Teoman, los lenguajes de programacion no son tan complicados como creemos, para cosas sencillas es cuestion de intuicion 😉
 
Ya está, aunque no quedó como queria, eso me dio una idea, y manejando el CSS quedó copado 😀D😀

Thanks !
 
podrias poner el demo de este template o algun ejemplo online . en la web hay diferentes grey mag
 
Atrás
Arriba