<?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: creating a new home(.php) page in autofocus theme</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 15:37:00 +0000</pubDate>

<item>
<title>awared on "creating a new home(.php) page in autofocus theme"</title>
<link>http://themeshaper.com/forums/topic/creating-a-new-homephp-page-in-autofocus-theme#post-14884</link>
<pubDate>Fri, 20 Aug 2010 20:09:20 +0000</pubDate>
<dc:creator>awared</dc:creator>
<guid isPermaLink="false">14884@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi. I am developing a website for a gallery (www.gransar.net/gallery) and I&#60;br /&#62;
would like to use auto-focus theme with a custom-designed home page.&#60;br /&#62;
The home page has two loops calling for a feature post and the last invitation&#60;br /&#62;
post . No matter what I do one of the loops don't work. I changed the theme&#60;br /&#62;
to twentyten and my code worked fine. I would like to know if using autofocus&#60;br /&#62;
will make this easier ... if so I would purchase it right now -- but even with that&#60;br /&#62;
I would have to have custom-designed home page. I would really appreciate any&#60;br /&#62;
help. Thank you very much.&#60;/p&#62;
&#60;p&#62;here is the code:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
/*&#60;br /&#62;
Template Name: Home&#60;br /&#62;
*/&#60;br /&#62;
?&#38;gt;&#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;br /&#62;
		&#38;lt;div id=&#34;content&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;!-- get styling to work... !--&#38;gt;&#60;br /&#62;
&#38;lt;p&#38;gt; this is the first loop &#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;?php $invitation_query = new WP_Query('tag=invite&#38;#38;showposts=1');&#60;br /&#62;
					  while ($invitation_query-&#38;gt;have_posts()) : $invitation_query-&#38;gt;the_post(); update_post_caches($posts);?&#38;gt;&#60;br /&#62;
					  $do_not_duplicate = $post-&#38;gt;ID;&#60;br /&#62;
					 	 &#38;lt;!-- styling goes here --&#38;gt;&#60;br /&#62;
					 	 &#38;lt;div id=&#34;nav-above&#34; class=&#34;navigation&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;div class=&#34;nav-previous&#34; style=&#34;height:170px;&#34;&#38;gt;&#38;lt;span class=&#34;meta-nav&#34;&#38;gt;&#38;lt;?php previous_image_link( false, '&#38;larr;' ) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
				&#38;lt;div class=&#34;nav-next&#34; style=&#34;height:170px;&#34;&#38;gt;&#38;lt;span class=&#34;meta-nav&#34;&#38;gt;&#38;lt;?php next_image_link( false, '&#38;rarr;' ) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
						&#38;lt;/div&#38;gt;&#60;br /&#62;
								 	 &#38;lt;!-- styling ends here --&#38;gt;&#60;/p&#62;
&#60;p&#62;					  &#38;lt;?php endwhile; ?&#38;gt;&#60;br /&#62;
					  	 &#38;lt;!-- anything after feature post goes here --&#38;gt;&#60;br /&#62;
&#38;lt;p&#38;gt; this is next loop&#38;lt;/p&#38;gt;&#60;br /&#62;
 				&#38;lt;?php rewind_posts();?&#38;gt;&#60;br /&#62;
 				&#38;lt;?php wp_reset_query();?&#38;gt;&#60;/p&#62;
&#60;p&#62; 				&#38;lt;?php $latestPost_query = new WP_Query ('tag=art&#38;#38;showposts=1');&#60;br /&#62;
					  while ($latestPost_query-&#38;gt;have_posts()) : $latestPost_query-&#38;gt;the_post(); update_post_caches($posts)?&#38;gt;&#60;br /&#62;
			    	  &#38;lt;?php if( $post-&#38;gt;ID == $do_not_duplicate ) continue; update_post_caches($posts); ?&#38;gt;&#60;br /&#62;
			    					 	&#38;lt;!-- styling goes here --&#38;gt;&#60;br /&#62;
					 	  &#38;lt;!-- styling goes here --&#38;gt;&#60;br /&#62;
					 	 &#38;lt;div id=&#34;nav-above&#34; class=&#34;navigation&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;div class=&#34;nav-previous&#34; style=&#34;height:170px;&#34;&#38;gt;&#38;lt;span class=&#34;meta-nav&#34;&#38;gt;&#38;lt;?php previous_image_link( false, '&#38;larr;' ) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
				&#38;lt;div class=&#34;nav-next&#34; style=&#34;height:170px;&#34;&#38;gt;&#38;lt;span class=&#34;meta-nav&#34;&#38;gt;&#38;lt;?php next_image_link( false, '&#38;rarr;' ) ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
						&#38;lt;/div&#38;gt;&#60;br /&#62;
								 	 &#38;lt;!-- styling ends here --&#38;gt;&#60;br /&#62;
					  &#38;lt;?php endwhile; ?&#38;gt;&#60;br /&#62;
					  	 &#38;lt;!-- anything after feature post goes here --&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;p&#38;gt; after the loops&#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;            &#38;lt;?php&#60;br /&#62;
            // calling the widget area 'page-top'&#60;br /&#62;
            get_sidebar('page-top');&#60;/p&#62;
&#60;p&#62;           // the_post();&#60;br /&#62;
            ?&#38;gt;&#60;/p&#62;
&#60;p&#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;/p&#62;
&#60;p&#62;                &#38;lt;?php &#60;/p&#62;
&#60;p&#62;                // creating the post header&#60;br /&#62;
                thematic_postheader();&#60;/p&#62;
&#60;p&#62;                ?&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry-content&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;                    &#38;lt;?php&#60;br /&#62;
                    the_content();&#60;br /&#62;
                    //wp_link_pages(&#34;\t\t\t\t\t&#38;lt;div class='page-link'&#38;gt;&#34;.__('Pages: ', 'thematic'), &#34;&#38;lt;/div&#38;gt;\n&#34;, 'number');&#60;br /&#62;
                    //edit_post_link(__('Edit', 'thematic'),'&#38;lt;span class=&#34;edit-link&#34;&#38;gt;','&#38;lt;/span&#38;gt;') ?&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;/div&#38;gt;&#60;br /&#62;
				&#38;lt;?php //autofocus_postfooter(); ?&#38;gt;&#60;br /&#62;
			&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;&#60;br /&#62;
        &#38;lt;?php&#60;/p&#62;
&#60;p&#62;      //  if ( get_post_custom_values('comments') )&#60;br /&#62;
      //      thematic_comments_template(); // Add a key/value of &#34;comments&#34; to enable comments on pages!&#60;/p&#62;
&#60;p&#62;        // calling the widget area 'page-bottom'&#60;br /&#62;
        get_sidebar('page-bottom');&#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;br /&#62;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#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();&#60;br /&#62;
?&#38;gt;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
