<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Marketing Technology Blog - Latest Comments in WordPress: After the First Post only on the Home Page</title><link>http://marketingtechnologyblog.disqus.com/</link><description>Leveraging new media and technology in marketing for increased business results.</description><atom:link href="https://marketingtechnologyblog.disqus.com/wordpress_hack_after_the_first_post_only_on_the_home_page/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 11 Sep 2009 12:01:16 -0000</lastBuildDate><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-118550210</link><description>&lt;p&gt;Hi Dean,&lt;/p&gt;&lt;p&gt;The integer "0" actually means the first in the series.  You could change that to "1" and it will be under the second!&lt;/p&gt;&lt;p&gt;Doug&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas Karr</dc:creator><pubDate>Fri, 11 Sep 2009 12:01:16 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-118550208</link><description>&lt;p&gt;Great post is there anyway to get this to show up under the second post on the homepage only? Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">deansauls</dc:creator><pubDate>Fri, 11 Sep 2009 10:45:45 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11518026</link><description>&lt;p&gt;Hello Douglas...&lt;/p&gt;&lt;p&gt;I am working whit a plugin on my homepage... But the coderguidelines document has the restriction of don't touch the core theme code... so i am using the add_filter function...&lt;/p&gt;&lt;p&gt;if(is_home()) add_filter('the_content','myfunction');&lt;/p&gt;&lt;p&gt;But is doesn't work correctly.... this filter show me the pluging content in every post in my homepage... what can i do ? does exist another hook just for the content of the homepage ?&lt;/p&gt;&lt;p&gt;Thanks...&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Armando Borge</dc:creator><pubDate>Sat, 20 Jun 2009 19:43:42 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016867</link><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;Sure!  Rather than the close bracket, I think you can use:&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;&amp;lt;? } elseif ($post==$posts[0] &amp;amp;&amp;amp; !is_paged()) { ?&amp;gt;&lt;br&gt;Your other html&lt;br&gt;&amp;lt;? } ?&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Doug&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas Karr</dc:creator><pubDate>Sun, 24 May 2009 09:58:49 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016866</link><description>&lt;p&gt;Really useful code, and I've been using it for a while.  Is there a way to include an 'else' statement so that you can have ads that run on the homepage, and then others that run on every other page?&lt;/p&gt;&lt;p&gt;I've been searching for ages and can't find it!&lt;/p&gt;&lt;p&gt;Hope someone can help.&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;James&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James</dc:creator><pubDate>Thu, 21 May 2009 09:19:44 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016865</link><description>&lt;p&gt;Many thanks for this tip Douglas. Is there a way to add ads on specific pages instead of homepage? I every page has a pageId and we can identify the loaded page based on that..i am looking out for specific pointers.&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;br&gt;Vaibhav&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vaibhav</dc:creator><pubDate>Mon, 15 Dec 2008 04:31:51 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016864</link><description>&lt;p&gt;You're welcome, Cody!  That's why I put this stuff up there. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas Karr</dc:creator><pubDate>Sun, 29 Jun 2008 05:07:11 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016863</link><description>&lt;p&gt;Holy cripe, Doug, you just saved my life. I've been looking for that if(is_home() &amp;amp;&amp;amp; !is_paged()) solution for hours now! Thank you :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cody McKibben</dc:creator><pubDate>Sat, 28 Jun 2008 02:36:31 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016862</link><description>&lt;p&gt;Top stuff - thanks for sharing this, it's a very handy bit of code!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Sat, 12 Apr 2008 13:40:30 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016861</link><description>&lt;p&gt;To get this code to work over in the sidebar, or anywhere outside of the while loop, just remove all the stuff about $post and $page from the code so you just have this;&lt;/p&gt;&lt;p&gt;stuff goes here&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stever</dc:creator><pubDate>Fri, 22 Feb 2008 14:59:49 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016860</link><description>&lt;p&gt;Can I implement this code in the sidebar so that the ads only appear in the sidebar on the homepage?&lt;br&gt;If not, can you please enlighten me on how I can do this?&lt;br&gt;Thank you!&lt;br&gt;Tyler&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tyler</dc:creator><pubDate>Wed, 30 Jan 2008 16:32:35 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016859</link><description>&lt;p&gt;You saved me alot of time, I was just about to start tweeking the loop when I saw this post, I'm really grateful. thanks for sharing it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kanute</dc:creator><pubDate>Tue, 06 Nov 2007 18:30:18 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016858</link><description>&lt;p&gt;Thanks John!  As well, this was a nice reminder... I had removed the bLaugh a few layouts ago and never put it back.  Until today!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Douglas Karr</dc:creator><pubDate>Sun, 15 Jul 2007 10:37:06 -0000</pubDate></item><item><title>Re: WordPress: After the First Post only on the Home Page</title><link>http://www.marketingtechblog.com/wordpress-hack-after-the-first-post-only-on-the-home-page/#comment-11016857</link><description>&lt;p&gt;Douglas,&lt;/p&gt;&lt;p&gt;I just wanted to drop you a quick thank you for this tip.  I had written an article with a slightly different method that was less effective than yours and one of my readers pointed out your article to me.&lt;/p&gt;&lt;p&gt;I have since modified &lt;a href="http://onemansblog.com/2007/07/09/tutorial-how-to-put-ads-on-wordpress-home-page-only/" rel="nofollow noopener" target="_blank" title="http://onemansblog.com/2007/07/09/tutorial-how-to-put-ads-on-wordpress-home-page-only/"&gt;my article&lt;/a&gt; and given credit where credit is due.&lt;/p&gt;&lt;p&gt;Thanks again,&lt;/p&gt;&lt;p&gt;John&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Pozadzides</dc:creator><pubDate>Thu, 12 Jul 2007 23:07:58 -0000</pubDate></item></channel></rss>