magazeen

The Magazeen Wordpress theme, of which this blog is based off of, had one major quirk in my opinion. The pagination did not work from the home page of the site. I took a deep look at it and found the solution. I have included my index.php file the updated theme in zip format for those who are in need of this fix. I commented my code so you can see where the solution to this problem is.  Just replace your Magazeen theme with this new and updated one. Make sure to backup your old one with any changes you may have made. Enjoy!

EDIT: As so many people have come through needing this fix, I have taken the time to make sure its updated with a few necessary additions and making sure my index.php looks exactly like the original. Thanks Harvey for the single.php addition and index.php fix.

File: magazeen-v1.1

If you like this post, then leave a comment below or Subscribe to the RSS Feed.
You can also promote this post through Twitter, StumbleUpon or Digg.


« CodeIgniter Review
HasOffers.com – Free Affiliate Network Software Review »
  • Uploaded the fix and still not working... any suggestions? Also, I see you aren't using the TimThumb script for the top thumbs. Any reason?
  • Hi Matt,

    Can you show me the site where you installed the magazeen theme?

    To answer your second question. I have slowly been customizing the
    magazeen theme for my own use. The TimThumb script wasnt something I
    wanted to use. Thought it was kind of repetitive. Personal taste.

    -Ryan
  • Thanks for all your help Ryan, got everything working well.

    Fix for me was to download your index.php file and overwrite the one in the theme folder, change the CHMOD for directory /blog/ to 777 (temporarily) AND to change the CHMOD for the cache folder in the Magazeen theme folder to 777.

    I hope this is helpful to everyone else!
  • Thanks, works like a charm!
    http://blog.kworks.se
  • Awesome! Glad I can help.
  • Hi Ryan, I was having the same trouble, which kinda freak me out.

    I tried everything, CHMOD cache to 777, use Smart Image Resizer to replace timthumb, check GD library etc. But it just never shows. Really hope you could help me

    my size is www.jryp.net, has some chinese in it, but theme and cms is english.

    My email is nflsfrankjohnray@gmail.com, please advice me via it, if you could make it work, I would write an article to thank you for free.
  • Hi Frank,

    To kind of troubleshoot this for you, did you input your image url in
    the field below where you enter the post content? Looks like wordpress
    is trying to process the url of the page, instead of the image.

    'http://www.jryp.net/wp-content/themes/magazeen/timthumb.php?src=http://www.jryp.net/2009-06-20/hello-world&w=69&h=54&zc=1'

    The bold section needs to be the link to the image: http://www.bodymystery.com/wp-content/uploads/2...

    This will most likely fix the problem your having.

    Ryan
  • daidy
    Hey Ryan.

    I'm using your index now. Would you by any chance know how to make every post appear as just a regular post. I don't like the vertical column and small title links that magazeen produces. If you could let me know I would really appreciate it.

    Thanks!
  • Hi daidy,

    Glad to hear you're using the new index I wrote. What you're asking
    actually requires quite a bit of code. More than I can explain here
    and have it make sense. What is required is reformatting the
    index.php, archives.php, search.php files to match your style. Also
    what you want takes away all the pagination problems plagued by the
    Magazeen theme itself.

    My suggestion is take your index.php and the one from the Wordpress
    default theme and use the default themes index.php. Then format the
    index.php to match up with Magazeens overall look.

    Hopefully this steers you in the right direction towards fixing it.

    Ryan
  • Is it possible you simply tell what code you added, and where?
  • Nevermind, I figured it out.

    Thank you kindly none-the-less. Best of luck to ya. :)
  • Hi, I downloaded your index fix but to no avail. No page could be found when I clicked on older entries. Kindly assist. Thanks.
  • Pzhel, Thanks for visiting my site.

    Looks like the pagination is working. If your site is http://feelthemomentum.net/blog/
    , I see no problems.
  • Welcome. =)

    The problem doesn't lie directly in the navigation bar but lies in the link. When I click on "previous entries", the weblog will bounce back with an error "If you can't find what you are looking for, try searching for it below:" Is there something wrong with the link section? Kindly assist again please. Thanks very much.
  • Couple things here.

    The links work like they are supposed to on your site, it is not an error. The way Magazeen in general is setup, they have a search bar up top in case you don't find what you want. You can change/remove the search bar and the message displayed.

    Have a look here for another example of the search box in action(this is controlled through your archive.php file): http://feelthemomentum.net/blog/category/misc-e...

    Hopefully I explained it well enough.
  • Alright. Sorry, it was my mistake. Thanks for the explanation. =) Anyways, just one last question (hopefully), is there any ways where I can display the full posts for the past entries? Thanks again!
  • My suggestion is to take the formatting from the index.php page where the newest two posts are displayed up top.

    An alternative quick fix is to add in <?php the_content(); ?> somewhere below your post title.

    Glad it all helped :)
  • Alright, I will try that out. Thanks a lot! =)
  • ilprincipino89
    help me here http://newsofmusic.org/ don't show the image.

    THX!
  • Hey ilprincipino89,

    Very unique theme you have going there. My guess is you have not filled in the field below where you enter the content for your post. It says 'Magazeen Post Options'. Enter your image url there and the magazeen system will create the image when you publish your post. Also make sure the 'cache' folder is chomod to 777 so the magazeen system can save the file to it.
  • ilprincipino89
    sorry, here http://newsofmusic.org/

    I'm italian :)
  • Looks like you got it working. :)
  • mashby
    Thank you for this. I had customized my home page a good bit, but seeing your page opened the door to what I needed to do to get pagination working. Thank you.

    http://pegchannels.org
  • Glad it helped out. :)
  • Hi Ryan,

    Could you tell me what i need to do retain the original Top image for each post whilst adding pagination. Thanks
  • Hey Neil,

    I take it you mean the specific picture for each post? So it shows when you have everything paginated?

    You will have to add this specific code for the pictures:
    <div class="post-image">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=521&h=246&zc=1" alt="<?php the_title(); ?>" />
    </div>

    Add it where the paginated links are generated. It will take a little tweaking to set correctly, but it should work just fine.
  • Harvey
    Worked like a charm....and instantly. Thanks :-)
  • Glad to hear it has worked well for you.
  • Harvey
    Actually, I thought it did. I just realized that when I use your untouched index.php file, I no longer have images in the top two posts showing up on the Home Blog page (they do show up on the individual pages). Was there some code I was supposed to add?

    Everything else seems fine. I searched through the comments on this page but don't think there was one quite the same as this.
  • Hey Harvey, check out the code above addressed to Niel. It has the code for showing the images. I will have a look at my code again soon here to make sure it has it.
  • winkieflash
    Hey Ryan,

    When I use your code, I get the 'older entries' link, but it still shows all the posts on the home page. (not just 7 or 8, as specified in the wp admin)
    Also, it doesn't show the image of the first post.
    Can you help me out? Thank!
  • It is very hard for me to gauge the problem you're having without seeing the site.

    To take a stab in the dark here and sort of clear up how magazeen works. The amount of posts shown is not controlled from the WP admin panel. It is controlled from the index.php file. Each 'section' of posts is specifically called for a certain amount of posts. You will have to actually change the index.php file to get your desired amount of posts to show.

    Hopefully it helps, otherwise drop me your url and I will have a look at it.
  • winkieflash
    I just uploaded your index.php again, on fluterie.nl. You can see what I mean? The image of the first post doesn't show.
    Can you tell me where to add the manual code so that the front page shows 8 posts at max?
    Thanks so much.
  • Alright to make it 8 posts max. You need to have a look at the code towards the bottom of the index.php file. Looks for this:

    <?php
    query_posts( 'showposts=6&offset=4' );
    if (have_posts()) :
    while (have_posts()) : the_post(); $category = get_the_category();
    ?>

    Change showposts=6 to showposts=4.

    If you count all the 'showposts' in the index file, you can get an idea of how many posts will show up total.
  • Harvey
    I seem to have solved the problem - the pix in the 1st 2 posts now appear correctly on the Home page (although who knows what new problem I may have caused - I'm not a coder. Please let me know if I've done anything dangerous ;-)

    Your index.php file seems to have removed some code from the theme's original file at line 141. I reinserted it and voila - seems to work. Here's the snippet


    <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>
    <div class="post-image">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=521&h=246&zc=1" alt="<?php the_title(); ?>" />
    </div>

    <?php endif; ?>
  • Awesome. Thanks for sharing Harvey.

    I will remake the magazeen theme with all the default looks. I forgot I added mine with all of my initial changes to theme.
  • Hey Guys,

    Thanks for everyone's help in here. You have all been a big help. Forgive me for asking what I'm sure is a laughably silly question but I am not a coder at all.
    I have added Ryan's index file but could anyone have a look at my site theheliumballoon.co.cc and tell me how to return the pink comment boxes to the top two posts. I would also like to make posts 5 and 6 appear just as posts 3 and 4 do i.e As in the original magazeen theme.
    I realise that this should be just comparing the two codes but I really don't even know which bits correspond to which features. Embarrassing I know.
    Thanks once again
    Neil
  • To get your comments blocks back, your top post code section will need to be updated to look like this: (the comment_count is the piece of code in particular you will want)

    <?php
    query_posts( 'showposts=2' );
    if (have_posts()) :
    while (have_posts()) : the_post(); $category = get_the_category();
    ?>

    <div <?php post_class(); ?>>

    <div class="post-meta clearfix">

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>





    </div><!-- End post-meta -->

    <div class="post-box">

    <div class="post-content">

    <div class="comment-count">
    <?php comments_popup_link(__( '0 Comments' ), __( '1 Comment' ), __( '% Comments' )); ?>
    </div>

    <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>

    <div class="post-image">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=521&h=246&zc=1" alt="<?php the_title(); ?>" />
    </div>

    <?php endif; ?>

    <div class="post-intro">

    <?php the_content( '' ); ?>

    </div><!-- End post-intro -->

    </div><!-- End post-content -->

    <div class="post-footer clearfix">

    <div class="continue-reading">
    <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Continue Reading <?php the_title_attribute(); ?>">Continue Reading
    </div>

    <div class="category-menu">

    <div class="category clearfix">
    <div> <?php echo $category[0]->cat_name; ?></div>
    </div>

    <div class="dropdown">

    <ul class="cat-posts">
    <?php
    $posted = get_posts( "category=" . $category[0]->cat_ID );
    if( $posted ) :
    foreach( $posted as $post ) : setup_postdata( $posted );
    ?>
    <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?><?php the_time( ' F j, Y' ) ?></li>
    <?php
    endforeach;
    endif;
    ?>
    <li class="view-more"><a href="<?php echo get_category_link( $category[0]->cat_ID ); ?>" class="view-more">View More »</li>
    </ul>

    </div><!-- End dropdown -->

    </div><!-- End category -->

    </div><!-- End post-footer -->

    </div><!-- End post-box -->

    </div><!-- End post -->

    <?php
    endwhile;
    endif;
    ?>

    ____

    Just so happens I kind of answered this a couple posts up.

    There are three sections like this:

    <?php
    query_posts( 'showposts=6&offset=4' );
    if (have_posts()) :
    while (have_posts()) : the_post(); $category = get_the_category();
    ?>

    Each one has a differen 'showposts' and 'offset' you will want to find the middle one and change it from showposts=2 to showposts=4.

    Then go to the bottom set and change it from showposts=6 to showposts=4. You will also need to change the offset from offset=4 to offset=6.

    This just requires a little playing with the numbers to get your desired look.
  • Harvey
    I think I successfully created an index.php file identical to the original theme, but with your pagination fix added. I'll email it separately to you if you want to post it.

    Thanks again for the fix :-)
  • emmaj
    Hi Ryan.

    I am useless at codes/programming and anything of the like. I'm sure you get a lot of requests for help but my page just won't work and I can't fix it, I can't open the php file and I have no thumbnails.

    I'm frustrated and just need some help.

    If you could please email me with some help I'd be so appreciative

    Thanks
    Emma
  • Hey Ryan and Harvey,

    I would be interested in that reconstructed original index with pagination added. If either of you guys have it finished yet could you send it to me. Thanks a lot guys.
    N
  • Harvey
    Neil - I would need your email address. Your web site doesn't have a "contact" link.
  • Thanks Harvey. If you go back to the site my address is at the bottom of the 'but you're boring!' page. Thanks
  • Ken Ken
    Hey Harvey, would you be able to send me the index.php as well?

    Email: smooveken@gmail.com
  • Ken Ken
    Hey I replaced my index.php file with yours and all of a sudden my thumbnails weren't showing in the 2 most recent posts.. you know, the 2 biggest posts? Strange, have you ran into this before? There was nothing that I changed... maybe thats the problem?
  • Ken Ken
    Oh ok I see whats going on here. Looks like you were modifying code. Hmm I think the easiest way for me to do this is put the original index.php along side with your index.php and try to see what you added.
  • Ken Ken
    Hey Ryan,

    Great work modifying this beast. I have been doing the same as well. Had a question though, I’ve been trying to figure out a way to get the Magazeen “Recent Posts” to display more like a “Random Post”. It just seems a little redundant to me when I have posts on the main page, and right next to it on the side bar, there’s the Recent Posts – which show the exact same posts right next to each other…. I’ve tried separate random post widgets and plugins but I just like the styling of the Recent Posts that comes with the Magazeen theme. Have you ever thought, or possibly have any idea, of how to modify the Recent posts to act like a random post widget?
  • Hi Ken Ken,

    Yeah I actually noticed the same redundant thing on the Magazeen theme. To get some random posts, you will have to modify the functions.php file in the theme folder.

    Change this: $recent = new WP_Query( 'showposts=' . $number );

    To this $recent = new WP_Query( 'showposts=' .$number.'&orderby=rand' );

    Hope this helps.
  • this fix works great! thanks for this!
  • Glad to help! :)
  • kylecwillis
    HELP! I don't know what I did, but I tried putting this index.php into my theme via FTP and now my entire site is down!

    site: kylecwillis.com
    email: kyle@cckirkland.org
  • Hi,

    Sounds dire. Judging by your site at the moment, looks like its not using my file anymore. Did you still need help with it? If so, drop me a line with exactly what you did and I will see what I can do to help.
  • shab
    Hi Ryan,

    I'm greg, a french guy.
    I've put your index instead of mine and when i click on "older entries" theres nothing. It doesn't work.
    I'v tried all solution of this post : CHMOD,.....

    Please, help me
    I don't understand
  • shab
    It's my site with your original index.php

    http://www.100pcoton.com/BLOG/
  • I was not able to see a site at this URL. Is it still active?
  • I guess the only way to solve the problem with the comments is installing disqus plugin, like you did it.
  • I completely bipassed the comments. I've been a fan of disqus, so it wasnt a thought to use the normal comment system.

    If you want to use the normal WP comment system, drop me a note with the problem you're having and I'll see if I can help you troubleshoot it.
  • dexter
    Can you help me…

    How do you limit the number of posts displayed on the blog page. Tried limiting it in the Admin panel…BUT it doesn’t work.

    Need your urgent help as I am facing a deadline…
    Is there a workaround in the coding?
  • Hi Dexter,

    I actually answered this in a similar post up above. You have to physically modify the index.php file. Here it is again for you:

    Alright to make it 8 posts max. You need to have a look at the code towards the bottom of the index.php file. Looks for this:

    <?php
    query_posts( 'showposts=6&offset=4' );
    if (have_posts()) :
    while (have_posts()) : the_post(); $category = get_the_category();
    ?>

    Change showposts=6 to showposts=4.

    If you count all the 'showposts' in the index file, you can get an idea of how many posts will show up total.
  • Hi Ryan,
    Thanks for the timely response. I tried the code, it broke it at 2 blog posts but the rest still show below on the same page and the WP Page Numbers plugin doesn't seem to take to you the previous pages as all the blogposts show up on the same page.

    The page numbers actually show up after 2 posts and then followed by the rest of the posts.

    I did make a diff. page a static home page, and the blog page as another static page. I don't believe that has anything to do with the issue.

    This is the change I made
    <?php
    query_posts( 'showposts=4&offset=4' );
    if (have_posts()) :
    while (have_posts()) : the_post(); $category = get_the_category();

    This is the blog, if you want to see the issue firsthand:
    http://infinitedynamics.net/blog/

    Any guidance would be greatly appreciated!
  • Sorry for the delayed response.

    Unfortunately its tough for me to say what exactly is going wrong with your site. I do not see any posts in there. Plus any custom work you have done has the possibility of messing up the pagination add-on work I have done to the theme.

    If I run into a dead end like this, I always suggest starting over fresh so you know everything is working right.
  • san84
    it isn't working. thats so ... what should i do now? http://serien.website.org
    actually, i think its a problem of the webhoster. i testet another one and there the original-theme just works! but i want this theme now on different host...
    and the thumbnails aren't shown up and look not good. please help me. thanks a lot!
  • Sorry for the delay. Looks as though your thumbnails are working now.

    Usually there are two reasons the thumbnails wont work. Either the host does not have imagemagick installed (which is unlikely) or the folder holding the images did not have the correct permissions.
  • san84
    well no it's still not workung. i think the hoster is "guilty" - cause permissons don't work and imagemagick is installed, when i install the theme, right?
    my solution was: i changed the code in header.php and index.php and there's is now only "use the linked image"... and i have to resize the pic by myself and link to that small image then... and the bigger one in the article is a different image (this non-resized-one).
    so, i got really mad at this code, cause nothing worked for me (but on other webserver it does!) that's why i do now load all the thumb-pictures on my own.
  • Sorry. It does sound like a host problem. Sounds like a lot of work just to use this one theme.
  • 00tennis
    Hi Ryan,

    I have just launched my blog site 00tennis.com and uploaded Magazeen theme; but have an issue with the thumbnails icon at the top. I tried to browse through the above fixes but would appreciate a fix in leyman's terms for a smart guy but not into computer programming (over the top but hey)-if you can help me out I'm happy to refer you on twitter etc.

    Regards,
    Jason
  • Serene
    Hi Ryan, thanks for sharing this beautiful wordpress theme. I'm helping a friend with her website and am running into some problems (I'm not a coder). I'm trying to remove the smaller box displays for posts as I just want to have 3 big displays and the rest of the post entries as Titles (like what http://pegchannels.org/ has done). Is this easily removable? Would really appreciate your guidance.... :)
  • Hi Scherene, For someone who is not a coder I will attempt to explain this as easily as possible. :)

    The index.php file for the theme is actually broken into three separate areas for each block of posts.

    You'll want to look for this section (which starts on line 204):

    "<?php
    query_posts( 'showposts=4&offset=2' );"

    Then delete all of that until here (ends on line 270):
    <?php
    $counter++;
    endwhile;
    endif;
    ?>



    Then lastly you will have to change one more line for the posts to stay in the correct order:

    From: query_posts( 'showposts=4&offset=6' );

    To: query_posts( 'showposts=4&offset=2' );

    You can change the 'showposts' amount to more if you want more title only posts.

    Hopefully this is helpful in getting you going on this.
  • Serene
    You're a life-saver! It works! Thank you so much!
  • Awesome! Glad to help.
  • Serene
    oh dear. i'm having problems again. This time, the pictures don't load properly. Any idea why?
    see site: http://www.callieproperty.com/
  • When I looked at the picture itself: http://www.callieproperty.com/wp-content/themes... I am getting an error.

    A couple suggestions: Either the link to the image was not put in below where you fill in the content of your post. Or the cache folder was not chmod to 777.

    There is also a possibility that your host does not have imagemagick or GD image tools installed, but I doubt it. Most do.

    Hopefully that can lead you in the right direction.
  • It's work perfectly ! thanks u so much !
  • Btw, how can I change the CSS style or replace [« Older Entries] and [Newer Entries »] to another language, which file should I edit?

    thanks again :)
  • I just figure it out! thanks anyway !
    And I replaced the '' pagebar2's code '' to orig,work good !
  • Awesome. Glad you got it.
  • Ryan, I used your pagination fix and I can't seem to get the "Latest Articles" text hover-over to work anymore (or the shadow underneath). I'm not sure if this is something from your fix or a problem I didn't notice before. If this is something you would be willing to look at, feel free to drop me a line.
  • Hi, If you leave your URL here I will take a look at it. My fix in general did not have to do with the latest articles hover. I will double check it for you though.
  • I appreciate it Ryan, but for now I'm trying to run with another theme (possibly one with some developer support). But I'll be back if I give it another swing. We all appreciate the hard work you're putting into debugging this theme, so thank you.
  • Great theme - thanks from germany !
  • Bitteschön
  • devon_Chulick
    Hey there. So It was really a shame that Smashing Magazine produced a great looking blog, but with so many problems! I am still having troubles with the images showing up. I add the image url to the custom image field in the editor, yet nothing seems to change. www.d-structed.com

    Any input?
  • Hi, I tried your URl, it was not loading for me.

    My suggestion is to check the 'cache' folder and make sure it is CHMOD to 775 and if 775 does not work, try 777.

    The images I believe require GD to process them and change them into thumbnails. So, make sure your host has it installed.

    I agree, its a theme which probably was not field tested. Although I've been working out the kinks for everyone.
  • devon_Chulick
    Dang, My CHMOD is set to 777, and I have GD. Any other thoughts?

    -D
  • Hmm, I don't know. Without digging deep in your server I can't say for sure what is going wrong.
  • garrett
    hi ryan. fix worked perfectly @ www.dopesickness.com
    thanks a lot for your help man
  • Awesome. Glad to help
  • Thanks so much!
  • You're Welcome.
  • aych
    Is it possible to place a jpg file as the header? I have an image that I created in Adobe Illustrator, but I can't figure out how to make it the header of my site. (Sorry, I'm new at this)
  • Sure, you will have to edit the header.php file. Then you can add your image in there.
  • aych
    Ok. Now I just have to figure out how to do that... would it be better if the file was in gif form?
  • Romful
    Anybody did fix the problem about the titles ' articles on the top slideshow ?

    For me it's still static and it does not work, I tried to fix it but I still not found how to do it.

    Someone could help me please
  • thanks. now i can enjoy using this theme
    good work
  • Hi Ryan, Thanks for helping everyone with the magazeen wordpress theme. I tried putting your fixes within my template but cannot find out what I am missing. Please view www.feltandfitted.com. I only want the first post style.

    Here is the code:
    <?php

    /**

    * @package WordPress

    * @subpackage Default_Theme

    */



    get_header(); ?>



    <div id="main-content" class="clearfix">



    <div class="container">



    <div class="col-580 left">





    <?php

    query_posts( 'showposts=16' );

    if (have_posts()) :

    while (have_posts()) : the_post(); $category = get_the_category();

    ?>



    <div <?php post_class(); ?>>



    <div class="post-meta clearfix">



    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>









    </div><!-- End post-meta -->



    <div class="post-box">



    <div class="post-content">



    <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?>



    <div class="post-image">

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=620&h=350&zc=1" alt="<?php the_title(); ?>" />

    </div>



    <?php endif; ?>







    <div class="post-intro">



    <?php the_content( '' ); ?>



    </div><!-- End post-intro -->



    </div><!-- End post-content -->



    <div class="post-footer clearfix">



    <div class="continue-reading">

    <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Continue Reading <?php the_title_attribute(); ?>">Continue Reading

    </div>



    <div class="category-menu">



    <div class="category clearfix">

    <div> <?php echo $category[0]->cat_name; ?></div>



    </div>





    <div class="dropdown">



    <ul class="cat-posts">

    <?php

    $posted = get_posts( "category=" . $category[0]->cat_ID );

    if( $posted ) :

    foreach( $posted as $post ) : setup_postdata( $posted );

    ?>

    <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?><?php the_time( ' F j, Y' ) ?></li>

    <?php

    endforeach;

    endif;

    ?>

    <li class="view-more"><a href="<?php echo get_category_link( $category[0]->cat_ID ); ?>" class="view-more">View More »</li>

    </ul>





    </div><!-- End dropdown -->



    </div><!-- End category -->



    </div><!-- End post-footer -->



    </div><!-- End post-box -->



    </div><!-- End post -->





    <?php

    endwhile;

    endif;

    ?>





    </div><!-- End col-580 (Left Column) -->



    <div class="col-340 right">



    <ul id="sidebar">



    <?php get_sidebar(); ?>



    </ul><!-- End sidebar -->



    </div><!-- End col-340 (Right Column) -->



    </div><!-- End container -->



    </div><!-- End main-content -->



    <?php get_footer(); ?>
blog comments powered by Disqus