<ul class="list02">
					<li class="articles" style="height:auto">
						<div class="content" style="height:auto">
							<div class="top">
								<div class="left">
								</div>
								<div class="center">
								</div>
								<div class="right">
								</div>
							</div>
							<div class="middle" style = "width:571px;float:left; height:auto;">
								<div class="content-height">
								
						<?php 
    $catID = getHomeArticles();
    $posts = get_posts("category=" . $catID . "&numberposts=20");
    ?>
		<?php 
    if ($posts) {
        ?>

		<ul>
		
		
		<?php 
        foreach ($posts as $post) {
            setup_postdata($post);
            ?>
			<li>
				<div >
Example #2
0
      <div class="rspace"></div>
      <p>Protect your home and its contents with the right Homeowners Insurance solution:</p>
      <ul>
        <li> <a href="/homeowners-insurance/solutions/homeowners-insurance">Homeowners</a></li>
        <li> <a href="/homeowners-insurance/solutions/renters-insurance">Renters</a></li>
        <li> <a href="/homeowners-insurance/solutions/condo-insurance">Condo</a></li>
        <li> <a href="/homeowners-insurance/solutions/mobile-home-insurance">Mobile Home </a></li>
      </ul>
      <p class="blue viewall"><a href="/homeowners-insurance/solutions/">View All</a> &gt;</p>
    </div>
    <div style="clear:left;"></div>
    <div class="knowledge">
      <h2>Knowledge Center</h2>
	  
      <?php 
$catIDArr = array(getBusiArticles(), getAutoArticles(), getHomeArticles());
$articlesNum = 0;
$posts = get_posts("category=" . implode(',', $catIDArr) . "&numberposts=20");
if ($posts) {
    ?>
      <ul>
	  
	<?php 
    foreach ($posts as $post) {
        setup_postdata($post);
        if ($articlesNum > 5) {
            break;
        }
        $articlesNum += 1;
        ?>
		<li> <a href="<?php 
Example #3
0
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
$category = get_the_category();
$cat_id = $category[0]->cat_ID;
$linkSrc = esc_url(get_home_url());
if ($cat_id == getBusiArticles()) {
    $titleClass = "businesstitle";
    $linkName = "Business Insurance Articles";
    $linkSrc = $linkSrc . "/business-insurance/articles/";
} elseif ($cat_id == getAutoArticles()) {
    $titleClass = "autotitle";
    $linkName = "Auto Insurance Articles";
    $linkSrc = $linkSrc . "/auto-insurance/articles/";
} elseif ($cat_id == getHomeArticles()) {
    $titleClass = "homeownerstitle";
    $linkName = "Homeowners Insurance Articles";
    $linkSrc = $linkSrc . "/homeowners-insurance/articles/";
} elseif ($cat_id == getNews()) {
    $titleClass = "generictitle";
    $linkName = "News";
    $linkSrc = $linkSrc . "/about/news/";
}
?>
		
	<h1 class="<?php 
echo $titleClass;
?>
"><?php 
the_title();