<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress &#8250; Support &#187; Tag: wordpress loop - Recent Posts</title>
		<link>http://wordpress.org/tags/wordpress-loop</link>
		<description>WordPress &#8250; Support &#187; Tag: wordpress loop - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 10:11:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/support/rss/tags/wordpress-loop" rel="self" type="application/rss+xml" />

		<item>
			<title>jeffeggleston on "[Plugin: WordPress Loop] Expire Posts"</title>
			<link>http://wordpress.org/support/topic/plugin-wordpress-loop-expire-posts#post-2549072</link>
			<pubDate>Mon, 09 Jan 2012 20:21:04 +0000</pubDate>
			<dc:creator>jeffeggleston</dc:creator>
			<guid isPermaLink="false">2549072@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Hello, I am using Wordpress Loop to show a series of movies that are appearing in a theatre. After the movie shows, I want the post to be removed from the plugin loop. I have added custom fields with the key $post_expiration for the expiration date and the format mm/dd/yyyy 00:00:00. How can I use this information in conjunction with the Wordpress Loop plugin? It would be similar to the info in teh following post:<br />
<a href="http://www.wprecipes.com/how-to-set-post-expiration-datetime-on-your-wordpress-blog">Setting Post Expiration Date</a><br />
Any help would be greatly appreciated. Thanks!</p>
<p><a href="http://wordpress.org/extend/plugins/wordpress-loop/" rel="nofollow">http://wordpress.org/extend/plugins/wordpress-loop/</a>
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2463194</link>
			<pubDate>Wed, 23 Nov 2011 18:25:26 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2463194@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Big Bagel, I wanted to thank you for all your help and teaching me some great stuff along the way! Thanks again!
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2461537</link>
			<pubDate>Tue, 22 Nov 2011 22:12:57 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2461537@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>got the toggle working the way I wanted it to with the code bellow.<br />
<pre><code>$(document).ready(function() {
	$(&#039;.bio-block&#039;).hide();
        $(&#039;.show&#039;).click(function(event){
            event.preventDefault();
            var sliderContent = $(this).next(&#039;.bio-block&#039;);
            $(&#039;.bio-block&#039;).not(sliderContent).hide();
            sliderContent.toggle();
        });
        $(&#039;.close&#039;).click(function(){
            $(this).parent().hide();
        });
    });</code></pre>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2461154</link>
			<pubDate>Tue, 22 Nov 2011 19:12:31 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2461154@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>forgot about that. Fixed it and now works. Almost there now. Just have to get it to close div if another div is clicked to open and get the footer to move down when open.<br />
Thanks again for all your help!
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460956</link>
			<pubDate>Tue, 22 Nov 2011 17:29:17 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2460956@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>The external JavaScript file is currently being added correctly to every page but this one. If you check your site's footer on any other page:</p>
<pre><code>&#60;script type=&#039;text/javascript&#039; src=&#039;http://scottcarltonblog.net/wp-content/themes/BLANK-Theme/author-toggle.js?ver=3.2.1&#039;&#62;&#60;/script&#62;</code></pre>
<p>Is the "our-team" page using a custom template? It seems to be missing the footer: <code>get_footer();</code></p>
<p>If you want to move the file here: <code>wp-content/theme/BLANK-Theme/js/author-toggle.js</code> </p>
<p>Then you just need to alter the second argument of <code>wp_register_script</code>:</p>
<pre><code>add_action( &#039;wp_enqueue_scripts&#039;, &#039;add_my_js&#039; );

function add_my_js() {
    wp_register_script( &#039;my-author-js&#039;, get_template_directory_uri() . &#039;/js/author-toggle.js&#039;, array( &#039;jquery&#039; ), false, true );
    wp_enqueue_script( &#039;my-author-js&#039; );
}</code></pre>
<p>And, if you want to have it only load on this one page, you can do this:</p>
<pre><code>add_action( &#039;wp_enqueue_scripts&#039;, &#039;add_my_js&#039; );

function add_my_js() {
    if ( is_page( 8 ) ) {
        wp_register_script( &#039;my-author-js&#039;, get_template_directory_uri() . &#039;/js/author-toggle.js&#039;, array( &#039;jquery&#039; ), false, true );
        wp_enqueue_script( &#039;my-author-js&#039; );
    }
}</code></pre>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460581</link>
			<pubDate>Tue, 22 Nov 2011 14:19:07 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2460581@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Fixed the class issue and set "a" to .show instead. Then set jquery .show back to .slideToggle </p>
<p>Now just need to get the function working through function.php
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460565</link>
			<pubDate>Tue, 22 Nov 2011 14:11:59 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2460565@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Ya, I removed the script from the header. had the script run in the page just to get it working. Can't get the function.php to work with<br />
<pre><code>function add_my_js() {
    wp_register_script( &#039;my-author-js&#039;, get_template_directory_uri() . &#039;/author-toggle.js&#039;, array( &#039;jquery&#039; ), false, true );
    wp_enqueue_script( &#039;my-author-js&#039; );
}</code></pre>
<p>the file is under wp-content/theme/my-theme</p>
<p>Once I remove the code from the page directly and place the code back in the js file with the add_my_js in function.php it doesn't work. Would like to put the file in my js folder under wp-content/theme/my-theme/js</p>
<p>I have been building this theme from scratch. Here is my <a href="http://pastebin.com/7zHhEJLz">function.php</a>
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460108</link>
			<pubDate>Tue, 22 Nov 2011 06:05:31 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2460108@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>The error I pointed out earlier is still there:</p>
<p><code>&#60;a href=&#34;#&#34; class&#34;show&#34;&#62;</code></p>
<p>Of course, should be:</p>
<p><code>&#60;a href=&#34;#&#34; class=&#34;show&#34;&#62;</code></p>
<p>That alone would cause the jQuery example I gave to not work. :)</p>
<p>You currently have this in your <code>&#60;head&#62;</code>:</p>
<pre><code>&#60;script type=&#039;text/javascript&#039; src=&#039;http://scottcarltonblog.net/author-toggle.js&#039;&#62;&#60;/script&#62;</code></pre>
<p>However, there's no file at that location and it appears to be directly added to your theme's <code>header.php</code> rather than included the proper way with <code>wp_register_script</code> and <code>wp_enqueue_script</code> in your theme's <code>functions.php</code>. Did you already remove that code? </p>
<p>You current jQuery is targeting all <code>&#60;a&#62;</code> tags which is probably not what you want. Did you want two separate buttons for opening and closing (like you have now) instead of a single button that toggles (like your example link)?</p>
<p>Forcing only one div open at a time isn't too hard but before I recommend anything it would best to finalize this part.
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460101</link>
			<pubDate>Tue, 22 Nov 2011 05:58:28 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2460101@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Alright we are making headway here. I have got the code working with this<br />
<pre><code>$(document).ready(function(){

$(&#039;.hidden&#039;).hide();

$(&#039;a&#039;).click(function(){
$( this ).next(&#039;.hidden&#039;).show(&#039;fast&#039;);

$(&#039;a.close&#039;).click(function(){
$(&#039;.hidden&#039;).hide(&#039;fast&#039;);
})
});

});</code></pre>
<p>It allow only the one div to be opened. Now just have to get it opening div and if another is open close it.
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460025</link>
			<pubDate>Tue, 22 Nov 2011 04:35:57 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2460025@http://wordpress.org/support/</guid>
			<description><![CDATA[<pre><code>$(document).ready(function(){

$(&#039;.hidden&#039;).hide();

$(&#039;a&#039;).click(function(){
$(&#039;.hidden&#039;).show(&#039;slow&#039;);

$(&#039;a.close&#039;).click(function(){
$(&#039;.hidden&#039;).hide(&#039;slow&#039;);
})
});

});</code></pre>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460021</link>
			<pubDate>Tue, 22 Nov 2011 04:32:53 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2460021@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Ok I have got it to work with this. But it opens all the hidden divs. Now I need to had a parent/child to it if I am correct.</p>
<p>&#60;script src="http://pastebin.com/embed_js.php?i=LH7xvpyf"&#62;&#60;/script&#62;</p>
<p>I had to post the code directly into the page though, because it's not working through function.php
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2460000</link>
			<pubDate>Tue, 22 Nov 2011 04:06:29 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2460000@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Doesn't seem to be loading the js file.
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2459976</link>
			<pubDate>Tue, 22 Nov 2011 03:42:31 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2459976@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>page is up. <a href="http://scottcarltonblog.net/our-team">here</a></p>
<p>Still not working. Right now just copy pasted as you say just to see if I could get it working. There will be multiple ones though because it is in the query post loop.</p>
<p>Thanks for your help. This defiantly help me understand this alot more.
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2459770</link>
			<pubDate>Tue, 22 Nov 2011 00:25:39 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2459770@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>That's enough to see how everything is structured. :)</p>
<p>So, when the title and image that goes along with it (currently wrapped in an <code>&#60;a&#62;</code>) is clicked, the "hidden" <code>&#60;div&#62;</code> should toggle on and off? Will there be multiple copies of this code on the same page or only one? As I mentioned earlier, you probably want to go with jQuery. Here's an example that should work with the code you gave:</p>
<pre><code>jQuery( document ) . ready( function( $ ) {
    $( &#039;.show&#039; ) . click( function() {
        $( this ) . next( &#039;.hidden&#039; ) . slideToggle( &#039;fast&#039; );
    } );
} );</code></pre>
<p>This essentially says, when the page is done loading, if somebody clicks on any element with the class "show", that the following element with the class "hidden" should be toggled.</p>
<p>You can put that in a separate file, upload it wherever you want (probably in your theme's folder) then simply include it in whatever page you want it to work on. For example, if you name it <code>author-toggle.js</code> and put it directly in your theme's folder (<code>wp-content/themes/your-current-theme</code>) then, to include it, you can add something like this to your theme's <code>functions.php</code>:</p>
<pre><code>add_action( &#039;wp_enqueue_scripts&#039;, &#039;add_my_js&#039; );

function add_my_js() {
    wp_register_script( &#039;my-author-js&#039;, get_template_directory_uri() . &#039;/author-toggle.js&#039;, array( &#039;jquery&#039; ), false, true );
    wp_enqueue_script( &#039;my-author-js&#039; );
}</code></pre>
<p>If you wanted to only have the script load on certain pages you can wrap it up in a conditional. For example, if you only wanted it on the page with ID = 7, then:</p>
<pre><code>add_action( &#039;wp_enqueue_scripts&#039;, &#039;add_my_js&#039; );

function add_my_js() {
    if ( is_page( 7 ) ) {
        wp_register_script( &#039;my-author-js&#039;, get_template_directory_uri() . &#039;/author-toggle.js&#039;, array( &#039;jquery&#039; ), false, true );
        wp_enqueue_script( &#039;my-author-js&#039; );
    }
}</code></pre>
<p>Here are reference pages to some of the things I used in my examples:</p>
<p><a href="http://codex.wordpress.org/Function_Reference/wp_register_script">Function Reference/wp register script</a><br />
<a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">Function Reference/wp enqueue script</a><br />
<a href="http://codex.wordpress.org/Function_Reference/get_template_directory_uri">Function Reference/get template directory uri</a><br />
<a href="http://api.jquery.com/slideToggle/" rel="nofollow">http://api.jquery.com/slideToggle/</a><br />
<a href="http://api.jquery.com/next/" rel="nofollow">http://api.jquery.com/next/</a></p>
<p>Of course, if you plan on editing a theme, it's always a good idea to use a child theme:</p>
<p><a href="http://codex.wordpress.org/Child_Themes">Child Themes</a></p>
<p>If you do use a child theme, my example for <code>functions.php</code> might need a little altering depending on where you upload the JavaScript file.</p>
<p>Also, it was probably just lost in the move to pastebin, but make sure there's an equals in there:</p>
<pre><code>&#60;a href&#34;#&#34; class&#34;show&#34;&#62;</code></pre>
<p>Once you get a working page up I'll be happy to troubleshoot any problems. I haven't exactly tested may examples to make sure there aren't any errors. :)
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2459039</link>
			<pubDate>Mon, 21 Nov 2011 17:39:54 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2459039@http://wordpress.org/support/</guid>
			<description><![CDATA[<p><a href="http://www.nest.com/about/index.html">Here is a link</a> to what I am trying to accomplish so what.</p>
<p>So I have my get_title and professional title with image in a box with the "a href" attribute and get_content and contact info in a hidden div until clicked. All in a loop.</p>
<p><a href="http://pastebin.com/FRntEuLM">here is a link to the code....</a></p>
<p>Wish I had more, but as I work on this will try and get a page up for you to see. Thanks again!
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458772</link>
			<pubDate>Mon, 21 Nov 2011 15:20:02 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2458772@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>If providing a link to the site is possible, that would be super helpful. Without actually seeing the structure of the site and exactly what you want hidden/shown it's hard to suggest anything specific.
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458713</link>
			<pubDate>Mon, 21 Nov 2011 14:39:10 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2458713@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>@Big Bagel<br />
Thanks for your response. Ya, the code as of now is in the header.php file. Not sure if that is best, but as a newbie and not an experienced js coder or wordpress coder, it's the easiest for me. This issue is that it does target all hidden divs causing them all to open or close. The other issue that I came across in the loop is that it will target only one div instead of the div in that particular loop posting. I keep search google for a fix, but haven't found one yet.<br />
As for the plugin, it looks great, but I am trying to stay away from plugins as much as possible. I would rather learn how to do it versus just adding a plugin for something. Helps me learn. Just a personal thing. Plus my trying to make it user friendly as possible for my client. So shortcode just adds one more think to teach my client.</p>
<p>@SwansonPhotos<br />
Thanks for the posting code rules. I'm new to the forums and didn't realize the code posting. It will be helpful in the future
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458315</link>
			<pubDate>Mon, 21 Nov 2011 08:16:04 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2458315@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>@SwansonPhotos:</p>
<p>I'm aware of <code>strip_tags</code>. I'm assuming the OP's code is being included directly in the theme (in <code>header.php</code> for example). It wouldn't be run through any functions so <code>strip_tags</code> isn't an issue. </p>
<blockquote><p>Additionally, the JavaScript should be in a separate file, the file called in the head or footer removing any such issues.</p></blockquote>
<p>I know, but we weren't taking about that. The OP's code was obviously being included directly in the file, so I constrained my recommendations to such. My offer to give a jQuery example, if taken, would have included this fact.</p>
<blockquote><p>I also disagree about validation issues, if a page is not able to be validated based on the DOCTYPE called, it can and will cause issues.</p></blockquote>
<p>I never said validation issues should be ignored. I simply said that the <em>only</em> issue with accidentally using the wrong technique in this very specific case would be that it won't validate. In other words, it will still work as expected in all relevant browsers. Further, since we can't check the DOCTYPE of the OP's theme anymore, this doesn't really matter.</p>
<blockquote><p>Commenting JavaScript in this fashion was required a very long time ago, but unless you are running Netscape 1 or IE4, it's not required and can cause validation issues are even be stripped out confusing WP.</p></blockquote>
<p>I know...that's what I've been saying. From my previous posts:</p>
<blockquote><p>However, it is true that since practically every browser used today can understand JavaScript, there's no real reason to do it anymore.</p></blockquote>
<blockquote><p>With the browsers used today it's best just to not use either.</p></blockquote>
<p>Since these posts don't have much of anything to do with the OP's original topic it would be best to continue asking questions in a new topic or, if you want to direct them specifically towards me, on my site.
</p>]]></description>
					</item>
		<item>
			<title>SwansonPhotos on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458276</link>
			<pubDate>Mon, 21 Nov 2011 07:33:59 +0000</pubDate>
			<dc:creator>SwansonPhotos</dc:creator>
			<guid isPermaLink="false">2458276@http://wordpress.org/support/</guid>
			<description><![CDATA[<p><a href="http://www.w3.org/TR/xhtml1/#h-4.8">http://www.w3.org/TR/xhtml1/#h-4.8</a></p>
<p><a href="http://www.plus2net.com/php_tutorial/strip_tags.php">strip_tags</a> is used by several WordPress functions including the excerpt.</p>
<p>Commenting JavaScript in this fashion was required a very long time ago, but unless you are running Netscape 1 or IE4, it's not required and can cause validation issues are even be stripped out confusing WP.</p>
<p>Additionally, the JavaScript should be in a separate file, the file called in the head or footer removing any such issues.</p>
<p>I also disagree about validation issues, if a page is not able to be validated based on the DOCTYPE called, it can and will cause issues.  I will continue to rely on the expertise of the those who continue to strive towards validation.
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458240</link>
			<pubDate>Mon, 21 Nov 2011 06:47:57 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2458240@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>@SwansonPhotos:</p>
<p>The DOCTYPE is completely up to the theme (look in <code>header.php</code>). Plus, using the wrong example won't break anything other than validation. With the browsers used today it's best just to not use either.</p>
<blockquote><p>And what about stripping HTML tags?</p></blockquote>
<p>What?
</p>]]></description>
					</item>
		<item>
			<title>SwansonPhotos on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458234</link>
			<pubDate>Mon, 21 Nov 2011 06:43:02 +0000</pubDate>
			<dc:creator>SwansonPhotos</dc:creator>
			<guid isPermaLink="false">2458234@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Isn't the default DOCTYPE for WordPress sites XHTML 1.0 Transitional?</p>
<p><code>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62;</code></p>
<p>And what about stripping HTML tags?
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458203</link>
			<pubDate>Mon, 21 Nov 2011 06:20:29 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2458203@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>That's how you would do it if you were using XHTML, right above it is the example for HTML like the OP's code example:</p>
<p><a href="http://en.wikibooks.org/wiki/JavaScript/Placing_the_Code#Inline_HTML_comment_markers" rel="nofollow">http://en.wikibooks.org/wiki/JavaScript/Placing_the_Code#Inline_HTML_comment_markers</a>
</p>]]></description>
					</item>
		<item>
			<title>SwansonPhotos on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458201</link>
			<pubDate>Mon, 21 Nov 2011 06:15:44 +0000</pubDate>
			<dc:creator>SwansonPhotos</dc:creator>
			<guid isPermaLink="false">2458201@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>@ Big Bagel,<br />
<a href="http://en.wikibooks.org/wiki/JavaScript/Placing_the_Code#Inline_XHTML_JavaScript">In this form</a>?
</p>]]></description>
					</item>
		<item>
			<title>Big Bagel on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458181</link>
			<pubDate>Mon, 21 Nov 2011 05:50:28 +0000</pubDate>
			<dc:creator>Big Bagel</dc:creator>
			<guid isPermaLink="false">2458181@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>@SwansonPhotos:</p>
<p>Wrapping JavaScript in an HTML comment used to be standard practice to keep browsers that didn't support JavaScript from having problems. The JavaScript inside will still run regardless. However, it is true that since practically every browser used today can understand JavaScript, there's no real reason to do it anymore. </p>
<p>@scottcarlton:</p>
<p>The problem is that your script is probably targeting your entire content section. The best way to toggle specific content is by using jQuery. If you're trying to show/hide individual posts, you can give a link to your site and I'll try to come up with a working code example; it shouldn't be too hard. If you're looking to hide content within a post/page you can also check out this plugin:</p>
<p><a href="http://wordpress.org/extend/plugins/jquery-collapse-o-matic/" rel="nofollow">http://wordpress.org/extend/plugins/jquery-collapse-o-matic/</a>
</p>]]></description>
					</item>
		<item>
			<title>SwansonPhotos on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2458033</link>
			<pubDate>Mon, 21 Nov 2011 03:23:33 +0000</pubDate>
			<dc:creator>SwansonPhotos</dc:creator>
			<guid isPermaLink="false">2458033@http://wordpress.org/support/</guid>
			<description><![CDATA[<p><code>&#60;-- these are for comments in HTML --&#62;</code></p>
<p>Remove the <a href="http://www.w3schools.com/tags/tag_comment.asp">comments</a> if you want this to run.  Also see the <a href="http://codex.wordpress.org/Forum_Welcome#Posting_Code">forum rules for posting code</a>.
</p>]]></description>
					</item>
		<item>
			<title>scottcarlton on "Show/Hide div in loop"</title>
			<link>http://wordpress.org/support/topic/showhide-div-in-loop#post-2457975</link>
			<pubDate>Mon, 21 Nov 2011 02:40:09 +0000</pubDate>
			<dc:creator>scottcarlton</dc:creator>
			<guid isPermaLink="false">2457975@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>I have been trying to create a show/hide div in the wp loop without any success. This simple script work great for one, but in the loop it toggles everything or nothing. Looking at this I need to be able to append something to each one that gets created so that it only works for that one only. Such as <a href="http://www.nest.com/about/index.html">this</a> on there bios. Not even sure if this is the right script to work with. Any help out there?</p>
<p>&#60;script type="text/javascript"&#62;<br />
&#60;!--<br />
    function toggle_visibility(id) {<br />
       var e = document.getElementById(id);<br />
       if(e.style.display == 'block')<br />
          e.style.display = 'none';<br />
       else<br />
          e.style.display = 'block';<br />
    }<br />
//--&#62;<br />
&#60;/script&#62;
</p>]]></description>
					</item>
		<item>
			<title>vtxyzzy on "Static Homepage vs The Loop/"</title>
			<link>http://wordpress.org/support/topic/static-homepage-vs-the-loop#post-2456238</link>
			<pubDate>Sat, 19 Nov 2011 19:11:52 +0000</pubDate>
			<dc:creator>vtxyzzy</dc:creator>
			<guid isPermaLink="false">2456238@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>The content of a Static Page is generally displayed by a Loop if it shows at all.</p>
<p>The screen could be totally generated by the template code for the SP, or pulled from another source, but this is generally not the case.
</p>]]></description>
					</item>
		<item>
			<title>Shapeshifter 3 on "Static Homepage vs The Loop/"</title>
			<link>http://wordpress.org/support/topic/static-homepage-vs-the-loop#post-2456023</link>
			<pubDate>Sat, 19 Nov 2011 15:28:36 +0000</pubDate>
			<dc:creator>Shapeshifter 3</dc:creator>
			<guid isPermaLink="false">2456023@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Howdy,</p>
<p>What are the downsides of using a Static Homepage and other Static Navigational Pages?  I'm using a HTML5 &#38; CSS3 framework whose front-end editor seems to be affected by my usage of a Static Front Page.  I don't quite understand the whole WordPress Loop (I'll go back to the Codex), but had the thought that Static Pages in general seem to place limitations on WordPress (I'm using 3.2.1).  Do Static Pages run outside of the "Loop", need to added back into it, or are they 100% included in it?</p>
<p>Sorry if this seems like a dumb question!
</p>]]></description>
					</item>
		<item>
			<title>randyttp on "Display the_content(); for a post_id outside WP Loop"</title>
			<link>http://wordpress.org/support/topic/display-the_content-for-a-post_id-outside-wp-loop#post-2290645</link>
			<pubDate>Fri, 19 Aug 2011 01:49:15 +0000</pubDate>
			<dc:creator>randyttp</dc:creator>
			<guid isPermaLink="false">2290645@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Is it possible? of course.</p>
<p>Sounds like you want the content to load into the div without the page refreshing though right? That would take javascript, something I'm not very good at.
</p>]]></description>
					</item>
		<item>
			<title>mathewhood on "Display the_content(); for a post_id outside WP Loop"</title>
			<link>http://wordpress.org/support/topic/display-the_content-for-a-post_id-outside-wp-loop#post-2290574</link>
			<pubDate>Fri, 19 Aug 2011 00:33:45 +0000</pubDate>
			<dc:creator>mathewhood</dc:creator>
			<guid isPermaLink="false">2290574@http://wordpress.org/support/</guid>
			<description><![CDATA[<p>Hey,</p>
<p>I have currently made my website display 12 recent posts from the category portfolio. They just display the_post_thumbnail and have the_title and the_content in a div above it as an overlay.</p>
<p>An example can be found here <a href="http://www.mathewhood.com" rel="nofollow">http://www.mathewhood.com</a></p>
<p>What I ideally want to do, is have it so that when you click on one of these thumbnails, the content for the post is shown in a div above.</p>
<p><a href="http://mathewhood.com/sitefiles/?page_id=71" rel="nofollow">http://mathewhood.com/sitefiles/?page_id=71</a></p>
<p>Is it possible for me to make it so that when you click on the div, it stores the post_id in a variable and then the_content calls that variable to show the post?</p>
<p>Here is pretty much all my code, I am not sure exactly what you would need for it so yeah, sorry if it is a bit much :(</p>
<p>Any help would be greatly appreciated!!!</p>
<p><strong>header.php Code</strong><br />
<pre><code>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62;
&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62;
&#60;head&#62;
&#60;meta charset=&#34;&#60;?php bloginfo( &#039;charset&#039; ); ?&#62;&#34; /&#62;
&#60;title&#62;&#60;?php bloginfo( &#039;name&#039; ); ?&#62; &#124; &#60;?php wp_title(); ?&#62;&#60;/title&#62;
&#60;link rel=&#34;stylesheet&#34; href=&#34;&#60;?php bloginfo( &#039;stylesheet_url&#039; ); ?&#62;&#34; type=&#34;text/css&#34; media=&#34;screen&#34; /&#62;
&#60;link href=&#039;http://fonts.googleapis.com/css?family=Actor&#039; rel=&#039;stylesheet&#039; type=&#039;text/css&#039;&#62;
&#60;link href=&#039;http://fonts.googleapis.com/css?family=PT+Sans+Narrow:700&#039; rel=&#039;stylesheet&#039; type=&#039;text/css&#039;&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.compatibility.js&#34;&#62;&#60;/script&#62;
&#60;script&#62;
$(document).ready(function() {
	//move the image in pixel
	var move = 8;
	//zoom percentage, 1.2 =120%
	var zoom = 1;
	//On mouse over those thumbnail
	$(&#039;.recentPost&#039;).hover(function() {
		//Set the width and height according to the zoom percentage
		width = $(&#039;.recentPost&#039;).width() * zoom;
		height = $(&#039;.recentPost&#039;).height() * zoom;
		//Move and zoom the image
		$(this).find(&#039;img&#039;).stop(false,true).animate({&#039;width&#039;:width, &#039;height&#039;:height&#60;?php /*?&#62;, &#039;top&#039;:move, &#039;left&#039;:move&#60;?php */?&#62;}, {duration:200});
		//Display the caption
		$(this).find(&#039;div.caption&#039;).stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		$(this).find(&#039;img&#039;).stop(false,true).animate({&#039;width&#039;:$(&#039;.recentPost&#039;).width(), &#039;height&#039;:$(&#039;.recentPost&#039;).height()&#60;?php /*?&#62;, &#039;top&#039;:&#039;8&#039;, &#039;left&#039;:&#039;8&#039;&#60;?php */?&#62;}, {duration:100});
		//Hide the caption
		$(this).find(&#039;div.caption&#039;).stop(false,true).fadeOut(200);
	});
});
&#60;/script&#62;
&#60;script&#62;
$(&#039;.thumbs&#039;).click(function(e){
    e.preventDefault();
    var contents = $(this).closest(&#039;.recentPost&#039;).find(&#039;.caption&#039;).html();

    var $container = $(&#039;#theContainer&#039;).html(contents);
    $container.show().animate({height:200}, {duration: 1000, easing: &#039;jswing&#039;}).animate({height:150}, {duration: 1000, easing: &#039;easeInOutCirc&#039;});
    $container.click(function(){
        $container.animate({height:200}, {duration: 1000, easing: &#039;easeInExpo&#039;})
        $container.fadeOut(&#039;slow&#039;);
        $container.html(&#039;&#039;);
    });
});
&#60;/script&#62;
&#60;?php wp_head();?&#62;
&#60;/head&#62;

&#60;body&#62;

&#60;div id=&#34;wrapper&#34;&#62;
	&#60;div id=&#34;container&#34;&#62;
    	&#60;div id=&#34;headerWrap&#34;&#62;
        	&#60;a href=&#34;http://www.mathewhood.com&#34;&#62;&#60;div id=&#34;logo&#34;&#62;&#60;/div&#62;&#60;/a&#62;
            &#60;div id=&#34;nav&#34;&#62;&#60;/div&#62;
        &#60;/div&#62;</code></pre>
<p><strong>test.php Code</strong><br />
<pre><code>&#60;?php
/*
Template Name: Test
*/
?&#62;
&#60;?php get_header(); ?&#62;
&#60;script type=&#34;text/javascript&#34;&#62;
$(document).ready(function(){
$(&#34;.recentPost&#34;).click(function(){
    $(&#34;.panel&#34;).slideToggle(&#34;slow&#34;);
  });
});
&#60;/script&#62;

&#60;style type=&#34;text/css&#34;&#62;
div.panel,p.flip
{
width: 885px;
margin: 0px;
padding-top: 9px;
padding-bottom: 9px;
padding-left: 12px;
padding-right: 12px;
background:url(images/border.png);
border-left: 1px dashed #5cd3f8;
border-right: 1px dashed #5cd3f8;
}
div.panel
{
display: none;
border: 1px dashed #5cd3f8;
}
p.flip
{
border-top: 1px dashed #5cd3f8;
border-bottom: 1px dashed #5cd3f8;
}
&#60;/style&#62;

&#60;?php query_posts(&#039;category_name=portfolio&#38;showposts=12&#039;); ?&#62;
&#60;div class=&#34;panel&#34;&#62;
&#60;b&#62;&#60;?php the_content();?&#62;&#60;/b&#62;
&#60;/div&#62;

                &#60;?php while (have_posts()) : the_post(); ?&#62;
                   &#60;div class=&#34;recentPost&#34;&#62;
                    &#60;a href=&#34;#&#34;&#62;
                        &#60;?php the_post_thumbnail(&#039;204, 144&#039;); ?&#62;
                    &#60;/a&#62;
                    &#60;a href=&#34;#&#34;&#62;
                        &#60;div class=&#34;caption&#34;&#62;
                            &#60;div class=&#34;captionTitle&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/div&#62;
                            &#60;p&#62;&#60;?php the_content();?&#62;&#60;/p&#62;
                        &#60;/div&#62;
                    &#60;/a&#62;
                &#60;/div&#62;
                &#60;?php endwhile; ?&#62;
                &#60;div class=&#34;cleared&#34;&#62;&#60;/div&#62;

&#60;?php get_footer(); ?&#62;</code></pre>
<p><strong>footer.php Code</strong><br />
<pre><code>&#60;div id=&#34;footerWrap&#34;&#62;
        	&#60;div id=&#34;footerLeft&#34;&#62;
            	&#60;p&#62;Copyright 2011 &#60;a href=&#34;http://www.mathewhood.com&#34;&#62;Mathew Hood&#60;/a&#62; / Powered by &#60;a href=&#34;http://www.wordpress.org&#34;&#62;Wordpress&#60;/a&#62;&#60;/p&#62;
            &#60;/div&#62;
            &#60;div id=&#34;footerRight&#34;&#62;
            	&#60;p&#62;Follow me on &#60;a href=&#34;#&#34;&#62;Forrst&#60;/a&#62;, &#60;a href=&#34;#&#34;&#62;Twitter&#60;/a&#62; or &#60;a href=&#34;#&#34;&#62;Facebook&#60;/a&#62;.&#60;/p&#62;
            &#60;/div&#62;
        &#60;/div&#62;
    &#60;/div&#62;
&#60;/div&#62;
&#60;?php wp_footer(); ?&#62;
&#60;/body&#62;
&#60;/html&#62;</code></pre>
<p><strong>functions.php Code</strong><br />
<pre><code>&#60;?php

add_theme_support( &#039;post-thumbnails&#039; );

if ( function_exists( &#039;add_theme_support&#039; ) ) {
	add_theme_support( &#039;post-thumbnails&#039; );
    set_post_thumbnail_size( 204, 144 ); // default Post Thumbnail dimensions
}

if ( function_exists(&#039;register_sidebar&#039;) )
register_sidebar(array(&#039;name&#039;=&#62;&#039;navigation&#039;,
	&#039;before_widget&#039; =&#62; &#039;&#039;,
	&#039;after_widget&#039; =&#62; &#039;&#039;,
	&#039;before_title&#039; =&#62; &#039;&#039;,
	&#039;after_title&#039; =&#62; &#039;&#039;,
));

register_sidebar(array(&#039;name&#039;=&#62;&#039;sidebar&#039;,
	&#039;before_widget&#039; =&#62; &#039;&#039;,
	&#039;after_widget&#039; =&#62; &#039;&#039;,
	&#039;before_title&#039; =&#62; &#039;&#039;,
	&#039;after_title&#039; =&#62; &#039;&#039;,
));

?&#62;</code></pre>
<p><strong>style.css Code</strong><br />
<pre><code>/*
Theme Name: Mathew Hood 2011
Theme URI: <a href="http://www.mathewhood.com" rel="nofollow">http://www.mathewhood.com</a>
Author: Mathew Hood
Author URI: <a href="http://www.mathewhood.com" rel="nofollow">http://www.mathewhood.com</a>
Description: The 2011 theme for MathewHood.com
Version: 1.2
License: Not for re-use.
*/

/* <a href="http://meyerweb.com/eric/tools/css/reset/" rel="nofollow">http://meyerweb.com/eric/tools/css/reset/</a>
   v2.0 &#124; 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: &#039;&#039;;
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Begin Normal Stylesheet */

body{
	background-color:#202023;
	background-image:url(images/background.png);
	background-repeat:repeat-x;
	color:#ffffff;
	font-family: &#039;Actor&#039;, sans-serif;
}
h1{
	font-size:30px;
	color:#fff;
	font-family: &#039;PT Sans Narrow&#039;, sans-serif;
	font-weight:100;
	text-transform:uppercase;
	margin-bottom:5px;
	text-shadow:-1px -1px 2px #000;
}
a{
	color:#70daf8;
	text-decoration:none;
}
a:hover{
	text-decoration:underline;
}
#wrapper{
	margin:0;
	margin:auto;
}
#container{
	width:924px;
	margin:0;
	margin:auto;
	margin-top:63px;
}
#logo{
	background:url(images/logo.png) no-repeat;
	width:292px;
	height:74px;
}
#contentWrap{
	position:relative;
	margin-top:45px;
}
#newBanner{
	position:absolute;
	background:url(images/newBanner.png) no-repeat;
	top:-5px;
	left:161px;
	width:64px;
	height:64px;
	z-index:2;
}
#footerWrap{
	font-size:14px;
	margin-top:4px;
}
#footerLeft{
	float:left;
}
#footerRight{
	float:right;
}
#theContainer{
 background:#EEEEEE;
}
.captionTitle{
	color:#70daf8;
	margin-top:10px;
	font-size:18px;
	text-align:center;
	filter:alpha(opacity=10);    /* ie  */
	-moz-opacity:1;    /* old mozilla browser like netscape  */
	-khtml-opacity: 1;    /* for really really old safari */
	opacity: 1;
}
.recentPost{
	width:204px;
	height:144px;
	background: url(images/border.png);
	padding:8px;
	float:left;
	margin-right:11px;
	margin-bottom:11px;
	overflow:hidden;
	position:relative;
}
.caption {
	margin-left:8px;
	width:204px;
	height:144px;
	background:#000;
	color:#fff;
	font-weight:bold;
	/* fix it at the bottom */
	position:absolute;
	left:0;
	/* hide it by default */
	display:none;
	/* opacity setting */
	filter:alpha(opacity=80);    /* ie  */
	-moz-opacity:0.8;    /* old mozilla browser like netscape  */
	-khtml-opacity: 0.8;    /* for really really old safari */
	opacity: 0.8;    /* css standard, currently it works in most modern browsers like firefox,  */
}

.recentPost .caption a {
	text-decoration:none;
	color:#0cc7dd;
	font-size:16px;
	filter:alpha(opacity=100);    /* ie  */
	-moz-opacity:1;    /* old mozilla browser like netscape  */
	-khtml-opacity: 1;    /* for really really old safari */
	opacity: 1;

	/* add spacing and make the whole row clickable*/
	padding:5px;
	display:block;
}

.recentPost .caption p {
	padding:5px;
	margin:0;
	font-size:14px;
	filter:alpha(opacity=100);    /* ie  */
	-moz-opacity:1;    /* old mozilla browser like netscape  */
	-khtml-opacity: 1;    /* for really really old safari */
	opacity: 1
}
img {
	border:0;
	/* allow javascript moves the img position*/
	position:absolute;
}
.cleared{
	clear:both;
}
.post-content {
	display: none;
}
#current-post .post-content {
	display: block;
}

/* Blog Styles */
#blogContainer{
	float:left;
	width:654px;;
	margin-right:40px;
}
#sidebar{
	float:right;
	width:223px;
}
.blogPost{
	margin-bottom: 20px;
	float:left;
}
.blogLeft{
	float:left;
	width:143px;
	text-align:right;
	margin-right:37px;
	border-top:1px solid #fff;
	padding-top:15px;
	font-size:14px;
	font-style:italic;
	line-height:18px;
}
.blogRight{
	float:right;
	width:467px;
}
.blogRight p{
	color:#fff;
}
.readMore{
	float:right;
}
.textwidget{
	margin-bottom:20px;
}

.caption{
display:none;
}

#contentWrap{
position:relative;
}

.recentPost{
 display:inline;
  margin:4px;
}

#theContainer{
 background:#EEEEEE;
}

/* Contact Form */
#ajaxForm .textfield{
	width:250px;
	height:20px;
	background: url(images/border.png);
	padding-left:5px;
	padding-top:5px;
	margin-bottom:5px;
	color:#fff;
}</code></pre>]]></description>
					</item>

	</channel>
</rss>

