Related posts WordPress - wordpress

I'm looking for a solution to show related posts from a different CPT.
There are two CPT's (Projects and Products) both have multiple sub categories (don't know if that ok...).
When on a: Single Post > Projects CPT > SportsCars
in the footer it must show the latest two posts of: Products CPT > Sportscars
The code i have now just filters on the CPT, not the SubCategrories. This is the code of single_products.php:
<section class="content">
<div class="container">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
</section>
<div class="container">
<div class="divider-small"></div>
</div>
<section class="news">
<div class="container">
<h2>Related projects</h2>
<div class="row">
<?php
$wp_query = new WP_Query(array('post_type' => 'projects', 'post__not_in' => array( $post->ID ), 'showposts' => 2));
$i = 0;
if ( $wp_query->have_posts() ): while( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<div class="col-md-6 item">
<div class="<?php if($i++ == 1): echo 'green'; else: echo 'blue'; endif; ?> clearfix">
<div class="col-sm-6">
<div class="text">
<h3><?php the_title(); ?></h3>
<p><?php echo excerpt(20); ?></p>
</div> <!-- end text -->
<div class="meer-news">
Lees meer >
</div> <!-- end meer-news -->
</div> <!-- end col-sm-6 -->
<div class="col-sm-6">
<div class="image">
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail( 'news_latest' );
else:
// backup
endif;
?>
</div> <!-- end image -->
</div> <!-- end col-sm-6 -->
</div>
</div> <!-- end item -->
<?php endwhile; endif; wp_reset_query(); ?>
</div> <!-- end row -->
</div> <!-- end container -->
</section>

Related

WordPress footer above content

Sorry, I'm a complete newbie at this, My question may sound stupid to some.
I've taken over maintenance of a WordPress site done by another developer who's no longer reachable. I'm having trouble with getting the content to display properly on the following page https://www.covalin.com/product-category/boxes/metallic-boxes/, when I change the number of products to be shown on the page to anything higher than 9, then it pushes the footer to the middle of the page and shows products below the footer. I want to be able to all products under each subcategory. Please see the screenshots below in order to get an idea of the issue. Any guidance will be most appreaciated, I've spent hours trying to figure this out.
When I use the following CSS below, it partly solves the problem but creates another one where all of the content is scrollable but appears behind the footer.
CSS Code - used
.footer {
position: fixed;
bottom:0;
}
PHP Code which changes the number of products display, added by last dev:
/*---------- woo-product pagination number setting ------------*/
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
function new_loop_shop_per_page( $cols ) {
// $cols contains the current number of products per page based on the value
stored on Options -> Reading
// Return the number of products you wanna show per page.
$cols = 27; //I changed this from 27 to 9 for the page to display properly.
return $cols;
}
How the site looks like with 9 products on a page
How the site looks like with 27 products on a page
Updated - with footer.php file below
<?php
/**
* The template for displaying the footer
*
* Contains footer content and the closing of the #main and #page div elements.
*
* #package WordPress
* #subpackage Twenty_Fourteen
* #since Twenty Fourteen 1.0
*/
?>
<?php // Check if site turned to boxed version
$boxed = ''; $boxed_element = ''; $row_class = '';
if (get_option('site_layout')=='boxed') {$boxed = 'container'; $boxed_element = 'col-md-12 col-sm-12'; $row_class = 'row';}
?>
<?php if ($boxed && $boxed!='') { ?>
</div>
<div class='row'>
<?php } ?>
<?php if ( class_exists('Woocommerce') ): ?>
<?php if(is_shop() || is_product() && is_active_sidebar('footer-bottom-shop')): ?>
<?php if (!$boxed || $boxed=='') : ?><div class="container">
<div class="row"><?php endif; ?>
<div class="shop-bottom-sidebar col-xs-12 col-sm-12 col-md-12">
<?php dynamic_sidebar('footer-bottom-shop'); ?>
</div>
<?php if (!$boxed || $boxed=='') : ?></div>
</div><?php endif; ?>
<?php endif ?>
<?php endif ?>
<footer id="colophon" class="site-footer <?php echo esc_attr($boxed_element);?>">
<?php
if (get_option('site_footer_top_background_option') && get_option('site_footer_top_background_option')!=''){
$site_footer_top_background_option = get_option('site_footer_top_background_option');
}
else{$site_footer_top_background_option='';}
?>
<?php if(is_active_sidebar('footer-top-sidebar-1') || is_active_sidebar('footer-top-sidebar-2')): ?>
<div class="footer-top widget-area <?php echo esc_attr($row_class);?>" style="background:<?php echo esc_attr($site_footer_top_background_option); ?>;">
<?php if (!$boxed || $boxed=='') : ?><div class="container">
<div class="row"><?php endif; ?>
<div class="col-xs-12 col-sm-6 col-md-6 footertopsidebarone">
<?php if(is_active_sidebar('footer-top-sidebar-1')): ?>
<?php dynamic_sidebar('footer-top-sidebar-1'); ?>
<?php endif;?>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 footertopsidebartwo">
<?php if(is_active_sidebar('footer-top-sidebar-2')): ?>
<?php dynamic_sidebar('footer-top-sidebar-2'); ?>
<?php endif;?>
</div>
<?php if (!$boxed || $boxed=='') : ?></div></div><?php endif; ?>
</div>
<?php endif; ?>
<?php
if (get_option('site_middle_background_option') && get_option('site_middle_background_option')!=''){
$site_middle_background_option = get_option('site_middle_background_option');
}
else{$site_middle_background_option='';}
?>
<div class="footer-middle widget-area <?php echo esc_attr($row_class);?>" style="background:<?php echo esc_attr($site_middle_background_option);?>">
<?php if (!$boxed || $boxed=='') : ?><div class="container">
<div class="row"><?php endif; ?>
<?php
if (get_option('footer_bg_img') && get_option('footer_bg_img')!=''){
$footer_bg_img_url = get_option('footer_bg_img');
}
else{$footer_bg_img_url='';}
if (get_option('footer_bg_img_position') && get_option('footer_bg_img_position')!=''){
$footer_bg_img_position = get_option('footer_bg_img_position');
switch($footer_bg_img_position){
case "right":
$storex_footer_bg_position='96%';
break;
case "left":
$storex_footer_bg_position='4%';
break;
}
}
else{$storex_footer_bg_position='';}
?>
<div class="fotter-bg-img" style="background: url(<?php echo esc_url($footer_bg_img_url)?>) no-repeat transparent; background-position:<?php echo esc_attr($storex_footer_bg_position)?> 90%">
<div class="col-xs-12 col-sm-6 col-md-3">
<?php if ( is_active_sidebar( 'footer-sidebar-1' ) ) : ?>
<?php dynamic_sidebar( 'footer-sidebar-1' ); ?>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<?php if ( is_active_sidebar( 'footer-sidebar-2' ) ) : ?>
<?php dynamic_sidebar( 'footer-sidebar-2' ); ?>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<?php if ( is_active_sidebar( 'footer-sidebar-3' ) ) : ?>
<?php dynamic_sidebar( 'footer-sidebar-3' ); ?>
<?php endif; ?>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<?php if ( is_active_sidebar( 'footer-sidebar-4' ) ) : ?>
<?php dynamic_sidebar( 'footer-sidebar-4' ); ?>
<?php endif; ?>
</div>
</div>
<?php if (!$boxed || $boxed=='') : ?></div>
</div><?php endif; ?>
</div>
<?php
if (get_option('site_footer_bottom_background_option') && get_option('site_footer_bottom_background_option')!=''){
$site_bottom_background_option = get_option('site_footer_bottom_background_option');
}
else{$site_bottom_background_option='';}
?>
<div id="footer-bottom" style="background:<?php echo esc_attr($site_bottom_background_option); ?>;" class="<?php echo esc_attr($row_class);?> footer-bottom">
<?php if (!$boxed || $boxed=='') : ?><div class="container">
<div class="row"><?php endif; ?>
<div class="col-xs-12 col-sm-6 col-md-6">
<?php if (has_nav_menu('footer-nav')) : ?><!-- Footer navigation -->
<nav id="site-navigation-footer" class="footer-navigation">
<?php wp_nav_menu( array('theme_location' => 'footer-nav') ); ?>
</nav>
<?php endif; ?><!-- Footer navigation -->
<div class="site-info">
<?php $copyright = esc_attr(get_option('site_copyright'));
if ($copyright != '') {
echo esc_attr($copyright);
} else {
echo 'Storex © '.date('Y') .''.esc_html__(' Theme by Themes Zone. All rights reserved', 'storex');
}
?>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<?php if ( is_active_sidebar( 'footer-bottom' ) ) : ?>
<?php dynamic_sidebar( 'footer-bottom' ); ?>
<?php endif; ?>
</div>
<?php if (!$boxed || $boxed=='') : ?></div>
</div><?php endif; ?>
</div>
</footer><!-- #colophon -->
<?php if ($boxed && $boxed!='') { ?>
</div>
<?php } ?>
</div><!-- #page -->
<script>
jQuery( document ).ready(function() {
jQuery('.quantity').append("<span class='qty-cus'>Qty</span>");
jQuery('.wc-forward').val('View Order');
jQuery('.update_cart').val('Update Order');
});
//review order table text changes
jQuery(window).on('load',function(){
setTimeout(function() { //calls click event after a certain time
jQuery('.cart-subtotal th').text('Order SubTotal');
}, 3000);
jQuery('.update_cart').val('Update Order');
jQuery('.page-template-special-offer .header-stripe h1.title').text('SPECIAL OFFERS');
jQuery('.product-description-wrapper > .quantity').remove();
});
var cloned_field = jQuery('.register p.form-row.full').clone();
jQuery('#custom_fax_no').append(cloned_field);
jQuery('.register p.form-row.full').eq(0).remove();
jQuery(window).scroll(function(){
var winScroll= jQuery(window).scrollTop();
console.log(winScroll);
if(winScroll>0){
jQuery('.header-top').addClass('sticky');
}else{
jQuery('.header-top').removeClass('sticky');
}
});
</script>
<?php wp_footer(); ?>
</body>
</html>
The issue is that you are not closing the <div> properly.
Currently it is like
<div id="page" class="hfeed site container">
<div class='row custom_header'>
<!-- some contents..... -->
</div>
<div class='row'>
<div id="main" class="site-main col-md-12 col-sm-12">
<!-- some contents..... -->
</div>
<div class='row'>
<footer id="colophon" class="site-footer col-md-12 col-sm-12">
<!-- some contents... -->
</footer>
</div>
</div>
</div>
It should be like,
<div id="page" class="hfeed site container">
<div class='row custom_header'>
<!-- some contents... -->
</div>
<div class='row'>
<div id="main" class="site-main col-md-12 col-sm-12">
<!-- some contents... -->
</div>
</div>
<div class='row'>
<footer id="colophon" class="site-footer col-md-12 col-sm-12">
<!-- some contents... -->
</footer>
</div>
</div>
There is no need to change the CSS.

How do I add a page featured image to nivo slider in wordpress?

I've followed the guide below in trying to manually install nivo slider into Wordpress: http://www.aoclarkejr.com/author/aj/
I'm trying to get the slider to pick up and display the featured image. I think perhaps there is a problem with the code in step 6, and not just the missing ' (see below). As the slider appears to be loading i.e I get the next/prev tabs and can see the code when viewing the page source, but it's not picking up and displaying the featured image.
<div id="slider-wrap">
<div id="slider">
<?php query_posts(array(
'post_type'=>'slides
));
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post();
$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
?>
<img src="<?php echo $thumbnail[0]; ?>" width="" height="" />
<?php endwhile; ?>
</div><!--/slider nivoSlider-->
</div><!--/slider-wrap -->
I should add that I'm trying to get this to work on a page, not custom post.
My ultimate goal is the get the same implementation as this: http://pexetothemes.com/demos/story_wp/home-default/
Here is my code now:
<?php get_header(); ?>
<div class="header-wrapper">
<div id="slider-wrap">
<div id="slider">
<?php query_posts(array(
'post_type'=>'page'
));
?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();
$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
?> <img src="<?php echo $thumbnail[0]; ?>" width="" height="" />
<?php // endwhile; ?>
</div><!--/slider nivoSlider-->
</div><!--/slider-wrap -->
</div>
<div class="clear"></div>
<div id="content-container" class="content-boxed layout-full">
<div id="full-width" class="content">
<div class="content-box">
<?php the_content(); ?>
</div>
</div>
</div>
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</div><!-- page wrapper -->
<?php get_footer(); ?>
For some reason part of the page is repeating itself.
<div class="header-wrapper"></div>
<div id="slider-wrap">
<div id="slider">
<img width="" height="" src="http://localhost:8888/defylife/assets/images/posts/ccm_adventure_450gp_left.jpg"></img>
</div>
<!--
/slider nivoSlider
-->
</div>
<!--
/slider-wrap
-->
<div class="clear"></div>
<div id="content-container" class="content-boxed layout-full">
<div id="full-width" class="content">
<div class="content-box"></div>
</div>
</div>
<img width="" height="" src=""></img>
</div>
<!--
/slider nivoSlider
-->
</div>
<!--
/slider-wrap
-->

What would make the_date function in wordpress only show up on random posts

I am working on a website for a client and I specifically needed to modify a given wordpress template. The template uses the get_template_part function to call the content. So for the loop on the index page it should be showing the_date under the header but for some reason it is showing up on some of the posts and not all.
index.php
<?php get_header(); ?>
<!-- Content -->
<div class="container contentarea">
<div class="row">
<div class="column-content">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!-- Call content.php -->
<?php get_template_part( 'content' ); ?>
<?php endwhile; ?>
<div class="clearfix"></div>
<div class="paging">
<?php if(function_exists('lugada_kriesi_pagination')) : lugada_kriesi_pagination(); else: ?>
<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'newzeo' )) ?></div>
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'newzeo' )) ?></div>
</div>
<?php } endif; ?>
</div>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title">Nothing Found</h1>
</header>
<div class="entry-content">
<p>Sorry, we can't find post you request. Please try search for a related post.</p>
</div>
</article>
<?php endif; ?>
</div> <!-- #content -->
</div> <!-- .column-content -->
<div class="column-sidebar nomargin">
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>
content.php
<div class="content-box bucket">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="http://schema.org/Article" >
<h2 class="entry-header">
<div class="entry-meta clearfix" >
<!-- Sticky post -->
<?php if (is_sticky()) : ?>
<div class="sticky-label"></div>
<?php endif; ?>
<!-- Post title -->
<?php the_title(); ?>
</div> <!-- .entry-meta -->
</h2> <!-- .header -->
<!-- Content -->
<div class="entry-content clearfix" itemprop="description">
<?php the_date('','<p><strong>','</strong></p>',true); ?>
<?php the_content('Continue reading'); ?>
<div class="clearfix"></div>
<?php wp_link_pages( array('before' => '<div class="page-link"> <span> Pages: </span>', 'after' => '</div>')); ?>
</div>
<div class="entry-meta footerbox" >
<!-- Category -->
<span class="cat-links">
<span>Posted in</span>
<?php echo get_the_category_list(', '); ?>
</span>
<!-- If single & have tag -->
<!-- Tag -->
<?php if ( is_single() ): if (has_tag()) : ?>
<span class="sep"> | </span>
<span class="tag-links">
<span>Tagged</span>
<?php echo get_the_tag_list('',', ',''); ?>
</span>
<?php endif; ?>
<?php edit_post_link('Edit', '<span class="edit-link"><span class="sep"> | </span>', '</span>'); ?>
<div class="socialshareboxsingle clearfix">
Share this post, let the world know <?php lugada_social_button();?>
</div>
<?php endif; ?>
</div> <!-- .footer -->
</div> <!-- article -->
</div>
<hr class="post-shadow"/>
<!-- If its single, a user has filled out their description and this is a multi-author blog, show a bio on their entries -->
<?php if ( is_single() ) : ?>
<?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : ?>
<div class="content-box">
<div id="author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 80 ); ?>
</div>
<div id="author-description">
<h2 >About <?php echo get_the_author(); ?></h2>
<?php the_author_meta( 'description' ); ?>
</div>
<div id="author-link" class="clearfix">
<?php if ( get_the_author_meta( 'user_url' )) : ?>
<span>Add my circles on Google+ : </span>
<span itemprop="author"><?php echo get_the_author(); ?></span>
<br/>
<?php endif; ?>
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
View all posts by <?php echo get_the_author(); ?><span class="meta-nav">→</span>
</a>
</div>
</div>
</div>
<hr class="post-shadow"/>
<?php endif; endif; ?>
They're not random posts. Read the Codex:
When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() or get_the_date() (since 3.0) with a date-specific format string.
Change:
<?php the_date('','<p><strong>','</strong></p>',true); ?>
To:
<p><strong><?php the_time('F j, Y'); ?></strong></p>

Wordpress next/prev post on single custom post page?

So I've got a custom post type, all working fine.
Goes to single-portfolio, but it won't paginate.
I can't, no matter what I try get pagination to work on the single page.
Here's my code.
<?php get_header(); ?>
<div class="main-content">
<div class="portfoliopost">
<div class="col-full">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="port-left-single">
<h2><?php the_title(); ?></h2>
<div class="projecttype">
<ul>
<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo '<li>' .$tag->name. '</li>';
}
}
?>
</ul>
</div>
<?php the_field('main_portfolio_meta'); ?>
</div> <!-- end div port-left-single -->
<div class="port-right-single">
<?php the_content(); ?>
</div>
<div style="clear:both;"></div>
</div> <!-- end div post-class -->
<div class="navigation">
<div class="next-posts"><?php next_posts_link('Older Posts') ?></div>
<div class="prev-posts"><?php previous_posts_link('Newer Posts') ?></div>
</div>
<?php endwhile; endif; ?>
</div> <!-- end div col-full -->
</div> <!-- end div portfolipost -->
<div style="clear:both;"></div>
</div> <!-- end div main content -->
<?php get_footer(); ?>
It's inside the loop, so what gives?

Wordpress - jetpack infinite scroll not working

So I've added them support for infinite scroll in my functions.php like so
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'footer' => 'page',
'posts_per_page' => 4
) );
Here's my template and loop, I added an arbitrary div with the id of 'content' just because jetpack apparently needs the containing div of your posts to be an ID, yet the infinite scroll still doesn't work.
<?php
/*
Template Name: News
*/
?>
<?php get_header(); ?>
<div class="main-content">
<div class="content-left">
<div id="content">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('posts_per_page=&paged=' . $paged);
?>
<?php if (have_posts()) : while ( have_posts()) : the_post(); ?>
<div <?php post_class('clearfix') ?> id="post-<?php the_ID(); ?>">
<div class="entrywrapper">
<div class="entry">
<div class="bordertop">
<h2><?php the_title(); ?></h2>
</div> <!-- end div bordertop -->
<div class="aligncenter grey">
<?php the_time('M jS, Y') ?>
</div>
<div class="meta">
<span>Posted in :<?php the_category($separator = ' / '); ?></span>
<div class="clearfix"></div>
</div> <!-- end div meta -->
<?php global $more; $more = 0; ?>
<div class="figure">
<?php the_post_thumbnail(); ?>
</div> <!-- end div figure //centers thumbnail -->
<p class="firstparaph"> <?php the_field('main_post_meta'); ?></p>
<?php the_content('Continue Reading >'); ?>
<div class="centerm">
<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?>
</div>
<div class="postbreaker">* * *</div> <!-- end div entrybreaker -->
</div> <!-- end div entry -->
<div style="clear:both"></div>
</div> <!-- end div entrywrapper -->
<div style="clear:both"></div>
</div> <!-- end div post -->
<?php endwhile; endif; ?>
<div class="navigation">
<div class="next-posts"><?php next_posts_link('Older Posts') ?></div>
<div class="prev-posts"><?php previous_posts_link('Newer Posts') ?></div>
</div>
</div> <!-- end div ID content -->
</div> <!-- end div content-left -->
<div class="content-right">
<?php get_sidebar(); ?>
</div> <!-- end div content-right -->
<div style="clear:both;"></div>
</div> <!-- end div main-content -->
<?php get_footer(); ?>
Maybe try this:
In functions.php
function get_post_content() {
?>
<div <?php post_class('clearfix') ?> id="post-<?php the_ID(); ?>">
<div class="entrywrapper">
<div class="entry">
<div class="bordertop">
<h2><?php the_title(); ?></h2>
</div> <!-- end div bordertop -->
<div class="aligncenter grey">
<?php the_time('M jS, Y') ?>
</div>
<div class="meta">
<span>Posted in :<?php the_category($separator = ' / '); ?></span>
<div class="clearfix"></div>
</div> <!-- end div meta -->
<?php global $more; $more = 0; ?>
<div class="figure">
<?php the_post_thumbnail(); ?>
</div> <!-- end div figure //centers thumbnail -->
<p class="firstparaph"> <?php the_field('main_post_meta'); ?></p>
<?php the_content('Continue Reading >'); ?>
<div class="centerm">
<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?>
</div>
<div class="postbreaker">* * *</div> <!-- end div entrybreaker -->
</div> <!-- end div entry -->
<div style="clear:both"></div>
</div> <!-- end div entrywrapper -->
<div style="clear:both"></div>
</div> <!-- end div post -->
<?php
}
Then in your blog loop file:
<?php
/*
Template Name: News
*/
?>
<?php get_header(); ?>
<div class="main-content">
<div class="content-left">
<div id="content">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('posts_per_page=&paged=' . $paged);
?>
<?php if (have_posts()) : while ( have_posts()) : the_post(); ?>
<!-- MY EDIT IS HERE -->
get_post_content();
<?php endwhile; endif; ?>
<div class="navigation">
<div class="next-posts"><?php next_posts_link('Older Posts') ?></div>
<div class="prev-posts"><?php previous_posts_link('Newer Posts') ?></div>
</div>
</div> <!-- end div ID content -->
</div> <!-- end div content-left -->
<div class="content-right">
<?php get_sidebar(); ?>
</div> <!-- end div content-right -->
<div style="clear:both;"></div>
</div> <!-- end div main-content -->
<?php get_footer(); ?>

Resources