Forums
(@eft0)
12 years, 9 months ago
novakpeter: I solve it creating a subpage with the subcategory name, and putting the code on it ??
12 years, 11 months ago
Here is the code:
<?php $current_category = single_cat_title("", false); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("category_name=". $current_category ."&posts_per_page=3&paged=". $paged); ?> <?php $i = 1; if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="contenidos730"> <?php if ($i==1): ?><h3><?php echo $current_category ?></h3><?php endif; ?> <div class="caja730"> <h1><?php the_title(); ?></h1> <?php the_content(); ?> </div> <div class="shad730"><img src="<?php bloginfo('template_directory') ?>/img/caja730_shadow.png"></div> </div> <?php $i++; endwhile; endif; ?> <?php wp_paginate(); ?>
in wp-config.php change the
define(‘WP_DEBUG’, false);
to true, then watch again your page and copy the error here to see what’s happen.
That error is thrown by PHP and likely you will need to contact your host to have them specify a temporary directory (e.g. upload_tmp_dir in php.ini)
you must edit and change the CSS stylesheet
14 years, 6 months ago
Using query_post() ?
query_posts(‘category_name=Cupcake’);
Then just the loop.
16 years, 3 months ago
You can add a single image in a post or page:
ex: [singlepic=id,width,height,mode,float]
And the comments are provided from WP.