<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: magazine style homepage</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Mon, 20 May 2013 08:51:28 +0000</pubDate>

<item>
<title>kim4true on "magazine style homepage"</title>
<link>http://themeshaper.com/forums/topic/magazine-style-homepage#post-23634</link>
<pubDate>Fri, 28 Oct 2011 01:35:21 +0000</pubDate>
<dc:creator>kim4true</dc:creator>
<guid isPermaLink="false">23634@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;O.K., I haven't got the homepage working yet, but the rest of the posts benefited from this post about excerpts: &#60;a href=&#34;http://themeshaper.com/forums/topic/how-to-make-excerpts-roll-over-and-say-uncle?replies=11#post-23633&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/how-to-make-excerpts-roll-over-and-say-uncle?replies=11#post-23633&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>kim4true on "magazine style homepage"</title>
<link>http://themeshaper.com/forums/topic/magazine-style-homepage#post-23617</link>
<pubDate>Wed, 26 Oct 2011 19:30:24 +0000</pubDate>
<dc:creator>kim4true</dc:creator>
<guid isPermaLink="false">23617@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I followed instructions in a book, &#34;Build Your Own Wicked WordPress Themes&#34;, and successfully got my homepage rearranged so that it displays a limited number of posts across a full-width page, with a thumbnail for the first post.&#60;/p&#62;
&#60;p&#62;See it at: &#60;a href=&#34;http://debraclopton.com/w/&#34; rel=&#34;nofollow&#34;&#62;http://debraclopton.com/w/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I am a novice with php, and the book left me hanging on a few points. Here are the things I am having difficulty with. Any and all help would be appreciated:&#60;/p&#62;
&#60;p&#62;1. I want the post for the first thumbnail to display the whole book-cover, but it is getting cropped. &#60;/p&#62;
&#60;p&#62;2. I'd like to be able to post a custom excerpt for the homepage so that the styling is better, and more text is included, but can't work out where/how to filter that.&#60;/p&#62;
&#60;p&#62;3. I'd like to display only one category on the homepage, but again, I'm stumped!&#60;/p&#62;
&#60;p&#62;==============================================&#60;/p&#62;
&#60;p&#62;Here's the code on my child-theme's function.php:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;// Add support for thumbnails&#60;br /&#62;
add_theme_support('post-thumbnails');&#60;br /&#62;
set_post_thumbnail_size(300, 482, false);&#60;br /&#62;
add_image_size('homepage-thumbnail',300, 482, false);&#60;/p&#62;
&#60;p&#62;// output a list of top-level pages&#60;br /&#62;
function authorsite_footer_pagelinks() {&#60;br /&#62;
  echo '&#38;lt;ul id=&#34;simplepages&#34;&#38;gt;';&#60;br /&#62;
  wp_list_pages('depth=1&#38;#38;sort_column=menu_order&#38;#38;title_li=');&#60;br /&#62;
  echo '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;// Add Header Image&#60;br /&#62;
function thematic_logo_image() {&#60;br /&#62;
 echo '&#60;a href=&#34;'.get_bloginfo('url').'&#34; title=&#34;'.get_bloginfo('name').'&#34;&#62;&#38;lt;span id=&#34;header-image&#34;&#38;gt;&#38;lt;/span&#38;gt;&#60;/a&#62;';&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_header','thematic_logo_image',6);&#60;/p&#62;
&#60;p&#62;// custom homepage loop&#60;br /&#62;
function authorsite_indexloop() {&#60;br /&#62;
  query_posts(&#34;posts_per_page=4&#34;);&#60;br /&#62;
  $counter = 1;&#60;br /&#62;
  if (have_posts()) : while (have_posts()) : the_post(); ?&#38;gt;&#60;br /&#62;
    &#38;lt;div id=&#34;post-&#38;lt;?php the_ID() ?&#38;gt;&#34; class=&#34;&#38;lt;?php thematic_post_class() ?&#38;gt;&#34;&#38;gt;&#60;br /&#62;
      &#38;lt;?php thematic_postheader();&#60;br /&#62;
      if ($counter == 1 &#38;#38;&#38;#38; has_post_thumbnail() &#38;#38;&#38;#38; !is_paged()) {&#60;br /&#62;
        the_post_thumbnail('homepage-thumbnail');&#60;br /&#62;
      } ?&#38;gt;&#60;br /&#62;
      &#38;lt;div class=&#34;entry-content&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;?php the_excerpt(); ?&#38;gt;&#60;br /&#62;
        &#60;a&#62;&#34; class=&#34;more&#34;&#38;gt;&#38;lt;?php echo more_text() ?&#38;gt;&#60;/a&#62;&#60;br /&#62;
        &#38;lt;?php $counter++; ?&#38;gt;&#60;br /&#62;
      &#38;lt;/div&#38;gt;&#60;br /&#62;
    &#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;&#60;br /&#62;
  &#38;lt;?php endwhile; else: ?&#38;gt;&#60;br /&#62;
    &#38;lt;h2&#38;gt;Oops!&#38;lt;/h2&#38;gt;&#60;br /&#62;
    &#38;lt;p&#38;gt;Something is not working quite right here. Please contact us and let us know using the contact link you'll find in the top menu. Thank you!&#38;lt;/p&#38;gt;&#60;br /&#62;
  &#38;lt;?php endif;&#60;br /&#62;
  wp_reset_query();&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;/p&#62;
&#60;p&#62;==============================================&#60;/p&#62;
&#60;p&#62;and here's the home.php:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;    // calling the header.php&#60;br /&#62;
    get_header();&#60;/p&#62;
&#60;p&#62;    // action hook for placing content above #container&#60;br /&#62;
    thematic_abovecontainer();&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;div id=&#34;container&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;?php thematic_abovecontent(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;div id=&#34;content&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;?php &#60;/p&#62;
&#60;p&#62;            	// create the navigation above the content&#60;br /&#62;
            	thematic_navigation_above();&#60;/p&#62;
&#60;p&#62;            	// calling the widget area 'index-top'&#60;br /&#62;
            	get_sidebar('index-top');&#60;/p&#62;
&#60;p&#62;            	// action hook for placing content above the index loop&#60;br /&#62;
            	thematic_above_indexloop();&#60;/p&#62;
&#60;p&#62;            	// action hook creating the index loop&#60;br /&#62;
            	//thematic_indexloop();&#60;/p&#62;
&#60;p&#62;				// a custom homepage loop&#60;br /&#62;
				authorsite_indexloop();&#60;/p&#62;
&#60;p&#62;            	// action hook for placing content below the index loop&#60;br /&#62;
            	thematic_below_indexloop();&#60;/p&#62;
&#60;p&#62;            	// calling the widget area 'index-bottom'&#60;br /&#62;
            	get_sidebar('index-bottom');&#60;/p&#62;
&#60;p&#62;            	// create the navigation below the content&#60;br /&#62;
            	// thematic_navigation_below();&#60;/p&#62;
&#60;p&#62;            	?&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;?php thematic_belowcontent(); ?&#38;gt; &#60;/p&#62;
&#60;p&#62;		&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php &#60;/p&#62;
&#60;p&#62;    // action hook for placing content below #container&#60;br /&#62;
    thematic_belowcontainer();&#60;/p&#62;
&#60;p&#62;    // calling the standard sidebar&#60;br /&#62;
    // thematic_sidebar();&#60;/p&#62;
&#60;p&#62;    // calling footer.php&#60;br /&#62;
    get_footer('homepage');&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;==============================================&#60;/p&#62;
&#60;p&#62;and this is the homepage specific css from the stylesheet:&#60;/p&#62;
&#60;p&#62;/* =Homepage specific styles&#60;br /&#62;
-------------------------------------------------------------- */&#60;br /&#62;
body.home #container {&#60;br /&#62;
  float: none;&#60;br /&#62;
  margin: 0;&#60;br /&#62;
  width:960px;&#60;br /&#62;
}&#60;br /&#62;
body.home #content {&#60;br /&#62;
  width:900px;&#60;br /&#62;
  overflow:hidden;&#60;br /&#62;
  margin: 0 0 0 10px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home .hentry {&#60;br /&#62;
  width: inherit;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home ul#simplepages {&#60;br /&#62;
  width: 940px;&#60;br /&#62;
  margin: 0 auto;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home ul#simplepages li {&#60;br /&#62;
  list-style-type: none;&#60;br /&#62;
  display: inline;&#60;br /&#62;
  margin-right: 30px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home div.p1 {&#60;br /&#62;
  font-size: 120%;&#60;br /&#62;
  height: 325px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home div.p1 img {&#60;br /&#62;
  float: left;&#60;br /&#62;
  margin-right: 30px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home div.p2 {&#60;br /&#62;
  clear: left;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home div.p2,&#60;br /&#62;
body.home div.p3,&#60;br /&#62;
body.home div.p4 {&#60;br /&#62;
  width: 270px;&#60;br /&#62;
  float: left;&#60;br /&#62;
  margin-top: 22px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;body.home div.p3 {&#60;br /&#62;
  margin-left: 30px;&#60;br /&#62;
  margin-right: 30px;&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>

</channel>
</rss>
