E
elteliblejvi
Beta
Social Media
Verificado por Whatsapp
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Hola quería poner dos columnas en los post en vede una en el principal , tb quería poner un minivídeo q al hacer clic lleve al post, y un resumen del post, os dejo el código para que lo veaís y a ver si me echáis un cable, un abrazo javi
Index.php
Index.php
PHP:
<?php get_header();
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php if ( function_exists('show_nivo_slider') ) { show_nivo_slider(); } ?>
<?php if($theme_homepage_sidebar == "1") { ?>
<?php if(is_active_sidebar('homepage')) { dynamic_sidebar('homepage'); } else { echo "<strong>To display your reviews and/or posts here, go to Appearance > Widgets and drag the desired widgets into the Homepage (Left Content Area) widget area.</strong>"; } ?>
<?php } else { ?>
<div id="main-content" class="main-content-home">
<?php if(is_active_sidebar('homepage')) { dynamic_sidebar('homepage'); } else { echo "<strong>To display your reviews and/or posts here, go to Appearance > Widgets and drag the desired widgets into the Homepage (Left Content Area) widget area.</strong>"; } ?>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<?php get_footer(); ?>
PHP:
<?php
/*
Template Name: Blog
*/
?>
<?php get_header();
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<div id="main-content" class="main-content-other">
<?php
query_posts('cat='.get_post_meta($post->ID, 'ghostpool_blog_cats', true).'&paged='.$paged);
global $more; $more = 0; if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--Begin Post Content-->
<div class="blog-post">
<!--Begin Post Title-->
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<!--End Post Title-->
<!--Begin Post Meta Details-->
<div class="post-meta"><span class="meta">By <?php the_author(); ?> on <?php the_time('d F Y'); ?> in <?php the_category(', '); ?></span><?php if(comments_open()) { ?><span class="comments-link"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments', 'comments-link', ''); ?></span><?php } ?><div class="clear"></div></div>
<!--End Post Meta Details-->
<!--Begin Post Image-->
<?php if((get_post_meta($post->ID, 'ghostpool_blog_image', true)) OR has_post_thumbnail()) { ?>
<div class="blog-image">
<a href="<?php the_permalink(); ?>"><?php if(get_post_meta($post->ID, 'ghostpool_blog_image', true)) { ?><img src="<?php echo(get_post_meta($post->ID, 'ghostpool_blog_image', true)); ?>" class="preload" alt="" /><?php } else { ?><?php the_post_thumbnail(('blog-image'), array('title' => '', 'class' => 'preload')); ?><?php } ?></a>
</div>
<?php } ?>
<!--End Post-Image-->
<!--Begin Post Text-->
<div class="post-text">
<?php if($theme_blog_text_display == "1") { ?>
<?php the_content('Read On'); ?>
<?php } else { ?>
<p><?php echo excerpt(110); ?> <a href="<?php the_permalink(); ?>" class="read-on">Read On</a></p>
<?php } ?>
</div>
<!--End Post Text-->
</div>
<!--End Post Content-->
<div class="clear"></div>
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php else : ?>
<h4>No posts match this criteria.</h4>
<?php endif; wp_reset_query(); ?>
</div>
<div id="sidebar" class="sidebar_other">
<?php if($theme_blog_sidebar == "1") { dynamic_sidebar('general'); } else { dynamic_sidebar('blog'); } ?>
</div>
<?php get_footer(); ?>

