<?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: Trouble Adding Custom Bits Below Content on Homepage</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 20 Jun 2013 02:15:06 +0000</pubDate>

<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12975</link>
<pubDate>Thu, 10 Jun 2010 20:52:25 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12975@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Just noticed an odd success/failure: the following code in a blank test child theme for Thematic DOES show the custom content below the index loop.&#60;/p&#62;
&#60;p&#62;Only it's not on the home page I've set in WP Settings -&#38;gt; Reading -&#38;gt; Front Page drop menu. Rather, the custom content is being placed at the bottom of the loop on the News page which I've set for Posts.&#60;/p&#62;
&#60;p&#62;When I set the Reading config to Front page display your latest posts radio button, the custom content then shows on the home page.&#60;/p&#62;
&#60;p&#62;So, I would say that either is_home and/or theamtic_below_indexloop only targets the posts page (and not the static page that is set to be home). &#60;/p&#62;
&#60;p&#62;I suppose that makes sense since the static home page doesn't actually have a loop. Not sure what other hook to try though...
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12956</link>
<pubDate>Wed, 09 Jun 2010 20:41:53 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12956@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hmm, more strangeness: The home.php file (used to render the extra content widgets on the Home page) is affecting the blog or Posts page output.&#60;/p&#62;
&#60;p&#62;I'm simply using WordPress Settings -&#38;gt; Reading section to set the Home and Blog pages to Pages I've created (in this case I have a Page called &#34;Home&#34; set as the front page and a Page called &#34;News&#34; set for the Posts page).&#60;/p&#62;
&#60;p&#62;At first I noticed that three widgets showed up on the bottom of the News page with only the most recent post showing (none of the other posts appeared).&#60;/p&#62;
&#60;p&#62;I cleared out some extra code on the home.php file to stop that nonsense but noticed other parts are missing on the News page like Pagination. So I added the standard next and previous_posts_link hooks to the home.php file and pagination started working on the News page!&#60;/p&#62;
&#60;p&#62;I'm confused that a template file not selected for the News page would affect the News page. &#60;/p&#62;
&#60;p&#62;I assume this has to do with template hierarchy, but I know very little about it and what I glanced at online didn't help much. Any clues?&#60;/p&#62;
&#60;p&#62;Here goes all that extra time I always try to allot to these projects...
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12955</link>
<pubDate>Wed, 09 Jun 2010 20:29:13 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12955@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ah, that content-extensions.php file is an excellent reference. Being new to Thematic, I didn't know it existed.&#60;/p&#62;
&#60;p&#62;Just tried &#60;code&#62;thematic_below_indexloop&#60;/code&#62; without success.&#60;/p&#62;
&#60;p&#62;I wonder what the deal is since nothing seems to work near the loop on the home page. But, like I mentioned before, I can take the sample child theme folder from the Thematic theme folder and add just the one function with the various hooks mentioned above without success.&#60;/p&#62;
&#60;p&#62;I even tried activating the empty test theme and removing the theme I've been working on just to see if it somehow affects the system. Same problem of no content results.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12886</link>
<pubDate>Tue, 08 Jun 2010 01:50:37 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">12886@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Look in &#60;code&#62;thematic&#38;gt;library&#38;gt;content-extensions.php&#60;/code&#62; for the list of action hooks that can be used with the content areas of thematic.&#60;/p&#62;
&#60;p&#62;There are lots of action hooks listed there that have not been updated on the bluemandala diagram.&#60;/p&#62;
&#60;p&#62; The source code is the one true diagram.&#60;/p&#62;
&#60;p&#62;Did you try the &#60;code&#62;thematic_below_indexloop&#60;/code&#62; hook?&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12879</link>
<pubDate>Mon, 07 Jun 2010 23:15:23 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12879@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Unfortunately, since both the &#60;strong&#62;thematic_postfooter&#60;/strong&#62; and &#60;strong&#62;thematic_belowcontent&#60;/strong&#62; don't seem to function predictably (and no other way has been brought up), I was obliged to opt for the old-fashioned solution of creating a new home template file. &#60;/p&#62;
&#60;p&#62;It's messier and redundant and requires me to remember that it's there if I change the home page, but at least it works.&#60;/p&#62;
&#60;p&#62;FYI on what I did to make it work in Thematic: &#60;/p&#62;
&#60;p&#62;I decided to add a block of three more home widgets below the entry content on the home page.&#60;/p&#62;
&#60;p&#62;So I created a basic raw page.php file that matches Thematic and added the widget section just below the content hooks at the bottom of the entry-content div like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Custom Home
*/
?&#38;gt; 

&#38;lt;?php get_header(); ?&#38;gt;

  &#38;lt;div id=&#38;quot;container&#38;quot;&#38;gt;
   &#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;

&#38;lt;?php the_post(); ?&#38;gt;

    &#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot; &#38;lt;?php post_class(); ?&#38;gt;&#38;gt;
     &#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/h1&#38;gt;
     &#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
	&#38;lt;?php the_content(); ?&#38;gt;
	&#38;lt;?php wp_link_pages(&#38;#39;before=&#38;lt;div class=&#38;quot;page-link&#38;quot;&#38;gt;&#38;#39; . __( &#38;#39;Pages:&#38;#39;, &#38;#39;your-theme&#38;#39; ) . &#38;#39;&#38;#38;after=&#38;lt;/div&#38;gt;&#38;#39;) ?&#38;gt;
	&#38;lt;?php edit_post_link( __( &#38;#39;Edit&#38;#39;, &#38;#39;your-theme&#38;#39; ), &#38;#39;&#38;lt;span class=&#38;quot;edit-link&#38;quot;&#38;gt;&#38;#39;, &#38;#39;&#38;lt;/span&#38;gt;&#38;#39; ) ?&#38;gt;
		&#38;lt;div id=&#38;quot;home_widgets&#38;quot;&#38;gt;
			&#38;lt;div class=&#38;quot;wrapper&#38;quot;&#38;gt;
			&#38;lt;?php if(function_exists(&#38;#39;dynamic_sidebar&#38;#39;)): ?&#38;gt;
						&#38;lt;div class=&#38;quot;hr&#38;quot;&#38;gt;_______&#38;lt;/div&#38;gt;
						&#38;lt;div class=&#38;quot;home_i&#38;quot;&#38;gt;
			&#38;lt;?php if(dynamic_sidebar(&#38;#39;Home I&#38;#39;)) :else: ?&#38;gt;&#38;lt;!-- widget_home_i --&#38;gt;&#38;lt;? endif; ?&#38;gt;
						&#38;lt;/div&#38;gt;
						&#38;lt;div class=&#38;quot;hr&#38;quot;&#38;gt;_______&#38;lt;/div&#38;gt;
						&#38;lt;div class=&#38;quot;home_ii&#38;quot;&#38;gt;
			&#38;lt;?php if(dynamic_sidebar(&#38;#39;Home II&#38;#39;)) :else: ?&#38;gt;&#38;lt;!-- widget_home_ii --&#38;gt;&#38;lt;? endif; ?&#38;gt;
						&#38;lt;/div&#38;gt;
						&#38;lt;div class=&#38;quot;hr&#38;quot;&#38;gt;_______&#38;lt;/div&#38;gt;
						&#38;lt;div class=&#38;quot;home_iii&#38;quot;&#38;gt;
			&#38;lt;?php if(dynamic_sidebar(&#38;#39;Home III&#38;#39;)) :else: ?&#38;gt;&#38;lt;!-- widget_home_iii --&#38;gt;&#38;lt;? endif; ?&#38;gt;
						&#38;lt;/div&#38;gt;
			&#38;lt;/div&#38;gt;&#38;lt;!-- #wrapper --&#38;gt;
		&#38;lt;?php endif; ?&#38;gt;
		&#38;lt;/div&#38;gt;&#38;lt;!-- #home_widgets --&#38;gt;
	&#38;lt;/div&#38;gt;&#38;lt;!– .entry-content –&#38;gt;
    &#38;lt;/div&#38;gt;&#38;lt;!– #post-&#38;lt;?php the_ID(); ?&#38;gt; –&#38;gt;  

&#38;lt;?php if ( get_post_custom_values(&#38;#39;comments&#38;#39;) ) comments_template() // Add a custom field with Name and Value of &#38;quot;comments&#38;quot; to enable comments on this page ?&#38;gt;  

   &#38;lt;/div&#38;gt;&#38;lt;!– #content –&#38;gt;
  &#38;lt;/div&#38;gt;&#38;lt;!– #container –&#38;gt;

&#38;lt;?php get_sidebar(); ?&#38;gt;
&#38;lt;?php get_footer(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Next, I went in to the static home page I had created in WordPress and selected &#34;Custom Home&#34; as the page template. Of course, static home pages must set in WordPress' &#60;strong&#62;Settings -&#38;gt; Reading -&#38;gt; A static page (select below)&#60;/strong&#62; radio button with the home page (or whatever you're calling it) selected in the &#60;strong&#62;Front page&#60;/strong&#62; drop menu.&#60;/p&#62;
&#60;p&#62;Almost forgot: I did use the child theme functions.php for registering the home widgets:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Adds three widget areas on the Homepage just below content in confunction with custom home.php template file
if ( function_exists(&#38;#39;register_sidebar&#38;#39;) )

register_sidebar(array(
		&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Home I&#38;#39;,
		&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;div id=&#38;quot;%2$s&#38;quot; class=&#38;quot;widget&#38;quot;&#38;gt;&#38;#39;,
		&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;,
		&#38;#39;before_title&#38;#39; =&#38;gt; &#38;quot;\n&#38;lt;h3&#38;gt;&#38;lt;span&#38;gt;&#38;quot;,
		&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/span&#38;gt;&#38;lt;/h3&#38;gt;\n&#38;quot;,
	));
register_sidebar(array(
		&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Home II&#38;#39;,
		&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;div id=&#38;quot;%2$s&#38;quot; class=&#38;quot;widget&#38;quot;&#38;gt;&#38;#39;,
		&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;,
		&#38;#39;before_title&#38;#39; =&#38;gt; &#38;quot;\n&#38;lt;h3&#38;gt;&#38;lt;span&#38;gt;&#38;quot;,
		&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/span&#38;gt;&#38;lt;/h3&#38;gt;\n&#38;quot;,
	));
register_sidebar(array(
		&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Home III&#38;#39;,
		&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;div id=&#38;quot;%2$s&#38;quot; class=&#38;quot;widget&#38;quot;&#38;gt;&#38;#39;,
		&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;,
		&#38;#39;before_title&#38;#39; =&#38;gt; &#38;quot;\n&#38;lt;h3&#38;gt;&#38;lt;span&#38;gt;&#38;quot;,
		&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/span&#38;gt;&#38;lt;/h3&#38;gt;\n&#38;quot;,
	));&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12752</link>
<pubDate>Wed, 02 Jun 2010 22:04:44 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12752@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Very frustrating... just to test, I tried every action hook on the Blue Mandala Thematic Page Structure diagram. &#60;em&#62;Every one&#60;/em&#62; works&#60;strong&#62; except&#60;/strong&#62; for the one that might be the right location for me: thematic_postfooter. &#60;/p&#62;
&#60;p&#62;I even tried checking the WP Action Reference without much luck: &#60;a href=&#34;http://codex.wordpress.org/Plugin_API/Action_Reference&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Plugin_API/Action_Reference&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The promising one, loop_end, doesn't actually place the content at the end of the loop. &#60;/p&#62;
&#60;p&#62;So, again, I'm wondering if I'm barking up the wrong tree. Is there some other preferred method of dropping content into a page after the entry?
&#60;/p&#62;</description>
</item>
<item>
<title>azoomer on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12743</link>
<pubDate>Wed, 02 Jun 2010 00:41:49 +0000</pubDate>
<dc:creator>azoomer</dc:creator>
<guid isPermaLink="false">12743@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Okay i don't really have a clue but you could try   is_front_page instead of is_home&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_home_bits() {

if (is_front_page()) { ?&#38;gt;

Custom Bits

&#38;lt;?php }
}

add_action(&#38;#39;thematic_postfooter&#38;#39;,&#38;#39;childtheme_home_bits&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I think that is what you need to use for a static homepage
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12739</link>
<pubDate>Tue, 01 Jun 2010 22:50:01 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12739@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Well, thanks, but it doesn't show any hooks in the right place (I've been staring at it for a while now!). I see thematic_postfooter in what looks like a useful place, but it either is busted or doesn't work on a static page.&#60;/p&#62;
&#60;p&#62;So if I use the following with thematic_postfooter instead, nothing happens on the homepage when a static Page is used (and not the normal loop of posts):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_home_bits() {

if (is_home()) { ?&#38;gt;

Custom Bits

&#38;lt;?php }
}

add_action(&#38;#39;thematic_postfooter&#38;#39;,&#38;#39;childtheme_home_bits&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>azoomer on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12737</link>
<pubDate>Tue, 01 Jun 2010 21:15:37 +0000</pubDate>
<dc:creator>azoomer</dc:creator>
<guid isPermaLink="false">12737@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I found this very useful:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bluemandala.com/thematic/thematic-structure.html&#34; rel=&#34;nofollow&#34;&#62;http://bluemandala.com/thematic/thematic-structure.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;it is a link from this thread:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/forums/topic/thematic-structure-diagram-widget-areas-included&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/thematic-structure-diagram-widget-areas-included&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12735</link>
<pubDate>Tue, 01 Jun 2010 18:20:36 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12735@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Wondering if there's some other route I've missed on adding content to a page in a child theme via Thematic?&#60;/p&#62;
&#60;p&#62;It seems incredibly limiting if the preferred method of modifying templates is via the functions.php file but ONLY if there's a hook in the right place to add the content. There doesn't seem to be one that allows me to add in a block below the page content of the homepage.&#60;/p&#62;
&#60;p&#62;Am I missing some other simple method? I just want to add some content below the page entry on the home page. This shouldn't be so hard!
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12728</link>
<pubDate>Tue, 01 Jun 2010 14:14:46 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12728@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hm, looking closer now, what I really need is a hook that goes beneath the post or the div class called &#34;entry-content&#34;. &#60;/p&#62;
&#60;p&#62;This would still be within the &#34;content&#34; div and my content would still take advantage of the special styles set up there.&#60;/p&#62;
&#60;p&#62;Are there any hooks to accommodate that?
&#60;/p&#62;</description>
</item>
<item>
<title>azoomer on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12705</link>
<pubDate>Sun, 30 May 2010 19:05:26 +0000</pubDate>
<dc:creator>azoomer</dc:creator>
<guid isPermaLink="false">12705@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I tried it out and couldn't get it working. Seems that thematic_belowcontent is not responding, whereas thematic_belowcontainer works.
&#60;/p&#62;</description>
</item>
<item>
<title>nimrod on "Trouble Adding Custom Bits Below Content on Homepage"</title>
<link>http://themeshaper.com/forums/topic/trouble-adding-custom-bits-below-content-on-homepage#post-12658</link>
<pubDate>Sat, 29 May 2010 01:54:35 +0000</pubDate>
<dc:creator>nimrod</dc:creator>
<guid isPermaLink="false">12658@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I can't figure out how to add some custom content below the content on a static Home page via a function in a child theme.&#60;/p&#62;
&#60;p&#62;From what I gather, this simple code should work:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_home_bits() {

if (is_home()) { ?&#38;gt;

Custom Bits

&#38;lt;?php }
}

add_action(&#38;#39;thematic_belowcontent&#38;#39;,&#38;#39;childtheme_home_bits&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, nothing appears and I can't seem to find any other hooks that would allow me to place the custom bits below the content on a page. In fact, if I simplify and remove the if(is home) part, it still doesn't work.&#60;/p&#62;
&#60;p&#62;I'm using latest Thematic 0.9.6.2, in WP 2.9.2, and a clean child theme taken from the example folder in Thematic (with just the one function added that is mentioned above).&#60;/p&#62;
&#60;p&#62;Any help is much appreciated.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
