Support » Themes and Templates » no idea how to theme this layout

  • Resolved eguru


    Hii guys
    Could you please help me to theming this layout.
    I have a header, Content and footer section
    I would like to split the content into three sections and want to assign to three categories. When ever I post to that particular category comes on relevant category.

    I dont know how to do that. i tried to figure it out but not working. Please have a look at this image.


    any kind of help would really appreciated. Sorry I know there are lots of tutorials. I learnt but i dont know how to get this one.

    Thanks to all experts here

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anyone Please help MEEEEEE … I am sad

    You can add three queries(one per category) and use the following CSS float:left; width:33%; to the wrapper divs.

    You can use the code from this article.

    Ohh my dear!!!! Thanks a lot… I love u fullll

    I got an error while I was using the code with Kubrik theme. Here is ther error

    Fatal error: Call to undefined function has_post_thumbnail() in C:\xampp\htdocs\blog\wp-content\themes\basictheme\index.php on line 12

    and this is the main page PHP code

     * @package WordPress
     * @subpackage Default_Theme
    get_header(); ?>
    <div class="featured-loop">
    	<?php $recent = new WP_Query("cat=1&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
    		<div class="feat-post clear">
    			<div class="feat-thumb"><?php if ( has_post_thumbnail() ) the_post_thumbnail('feat-loop'); else { ?><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/default-thumbs/feat-thumb.jpg" alt="<?php the_title(); ?>" /></a> <?php } ?></div>
    			<div class="feat-post-content">
    				<h2 class="feat-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    				<span class="feat-post-meta">
    					<span class="meta-date"><?php the_time('d, M'); ?>.</span>
    					<span class="meta-comments"><?php comments_number('', '1', '%'); ?></span>
    				<?php the_excerpt(); ?>
    				<div class="read-more"><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/read-more.gif" alt="read-more" border="0" /></a></div>
    	<?php endwhile; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Pleaes tell me what is the problem.



    Forum Moderator

    eguru, yep you need to add thumbnail support to your theme, In the link alchymyth gave you it says it all, look for the part where it says to add code to functions.php

    Thanks a lot freesouldesign. The trick you have mentioned worked like a charm.
    @alchymyth- thanks a lot for the information 🙂

    Friends, sorry for being late to reply as I was in an holiday in Bali

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘no idea how to theme this layout’ is closed to new replies.