<?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>THE MOLITOR FORUMS &#187; Topic: How to add an accordion option to display list of documents</title>
		<link>http://www.themolitor.com/forums/topic/how-to-add-an-accordion-option-to-display-list-of-documents</link>
		<description>THE MOLITOR FORUMS &#187; Topic: How to add an accordion option to display list of documents</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 09:54:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/how-to-add-an-accordion-option-to-display-list-of-documents" rel="self" type="application/rss+xml" />

		<item>
			<title>awilson3rd on "How to add an accordion option to display list of documents"</title>
			<link>http://www.themolitor.com/forums/topic/how-to-add-an-accordion-option-to-display-list-of-documents#post-25888</link>
			<pubDate>Mon, 30 Dec 2013 07:49:00 +0000</pubDate>
			<dc:creator>awilson3rd</dc:creator>
			<guid isPermaLink="false">25888@http://www.themolitor.com/forums/</guid>
			<description><p>Hello, </p>
<p>Was just wondering if this could be used to create additional accordion items for general html (text) content? </p>
<p>Any idea would be appreciated. </p>
<p>Thanks </p>
<p>Andrew
</p></description>
		</item>
		<item>
			<title>mconheady on "How to add an accordion option to display list of documents"</title>
			<link>http://www.themolitor.com/forums/topic/how-to-add-an-accordion-option-to-display-list-of-documents#post-14939</link>
			<pubDate>Wed, 26 Sep 2012 16:38:06 +0000</pubDate>
			<dc:creator>mconheady</dc:creator>
			<guid isPermaLink="false">14939@http://www.themolitor.com/forums/</guid>
			<description><p>That's pretty cool. thanks, I may use this.
</p></description>
		</item>
		<item>
			<title>ckelley on "How to add an accordion option to display list of documents"</title>
			<link>http://www.themolitor.com/forums/topic/how-to-add-an-accordion-option-to-display-list-of-documents#post-14154</link>
			<pubDate>Fri, 24 Aug 2012 10:12:37 +0000</pubDate>
			<dc:creator>ckelley</dc:creator>
			<guid isPermaLink="false">14154@http://www.themolitor.com/forums/</guid>
			<description><p>thanks!</p>
<p>-Chris K
</p></description>
		</item>
		<item>
			<title>lgubernatis on "How to add an accordion option to display list of documents"</title>
			<link>http://www.themolitor.com/forums/topic/how-to-add-an-accordion-option-to-display-list-of-documents#post-14150</link>
			<pubDate>Thu, 23 Aug 2012 20:03:39 +0000</pubDate>
			<dc:creator>lgubernatis</dc:creator>
			<guid isPermaLink="false">14150@http://www.themolitor.com/forums/</guid>
			<description><p>ARGH - missed the backticks around code - please try this: </p>
<p>NOTE: BACK UP ALL YOUR FILES BEFORE YOU EDIT THEM ALWAYS.</p>
<p>In the single.php file, I made some space between the gallery and the share items and placed the following: </p>
<pre><code>&#60;div id=&#34;documentsToggle&#34; class=&#34;toggleButton closed&#34;&#62;
&#60;span&#62;+&#60;/span&#62;Documents&#60;/div&#62;
     &#60;div id=&#34;documents&#34;&#62;

&#60;ul&#62;
    	&#60;?php $args = array(
         &#039;post_type&#039; =&#62; &#039;attachment&#039;,
         &#039;post_mime_type&#039; =&#62; &#039;application/pdf,application/msword&#039;,
         &#039;numberposts&#039; =&#62; -1,
         &#039;post_status&#039; =&#62; null,
         &#039;post_parent&#039; =&#62; $post-&#62;ID,
         &#039;orderby&#039; =&#62; &#039;menu_order&#039;,
         &#039;order&#039; =&#62; &#039;desc&#039;
       	  );
     	 	$attachments = get_posts($args);
        	if ($attachments) {
        	foreach ($attachments as $attachment) {
         	echo &#039;
&#60;li&#62;&#60;a&#62;ID).&#039;&#34;&#62;&#039;;
         	echo $attachment-&#62;post_title;
          	echo &#039;&#60;/a&#62;&#60;/li&#62;&#039;;
         	}
       	  }
   	  ?&#62;
   	  &#60;/ul&#62;
      &#60;/div&#62;</code></pre></description>
		</item>
		<item>
			<title>lgubernatis on "How to add an accordion option to display list of documents"</title>
			<link>http://www.themolitor.com/forums/topic/how-to-add-an-accordion-option-to-display-list-of-documents#post-14149</link>
			<pubDate>Thu, 23 Aug 2012 19:58:54 +0000</pubDate>
			<dc:creator>lgubernatis</dc:creator>
			<guid isPermaLink="false">14149@http://www.themolitor.com/forums/</guid>
			<description><p>First, Molitor, Thank You for this theme. It's amazing and it does so much good stuff. I personally needed to add to your accordion on single posts to display documents associated with that post, in a similar fashion to your gallery of images. I looked through the forums here and didn't find a fix, so I cobbled my own, and I wanted to share it in case it helps others. </p>
<p>NOTE: BACK UP ALL YOUR FILES BEFORE YOU EDIT THEM ALWAYS.</p>
<p>In the single.php file, I made some space between the gallery and the share items and placed the following: </p>
<pre><code>&#60;div id=&#34;documentsToggle&#34; class=&#34;toggleButton closed&#34;&#62;
&#60;span&#62;+&#60;/span&#62;Documents&#60;/div&#62;
     &#60;div id=&#34;documents&#34;&#62;

&#60;ul&#62;
    	&#60;?php $args = array(
         &#039;post_type&#039; =&#62; &#039;attachment&#039;,
         &#039;post_mime_type&#039; =&#62; &#039;application/pdf,application/msword&#039;,
         &#039;numberposts&#039; =&#62; -1,
         &#039;post_status&#039; =&#62; null,
         &#039;post_parent&#039; =&#62; $post-&#62;ID,
         &#039;orderby&#039; =&#62; &#039;menu_order&#039;,
         &#039;order&#039; =&#62; &#039;desc&#039;
       	  );
     	 	$attachments = get_posts($args);
        	if ($attachments) {
        	foreach ($attachments as $attachment) {
         	echo &#039;

&#60;li&#62;&#60;a&#62;ID).&#039;&#34;&#62;&#039;;
         	echo $attachment-&#62;post_title;
          	echo &#039;&#60;/a&#62;&#60;/li&#62;&#039;;
         	}
       	  }
   	  ?&#62;
   	  &#60;/ul&#62;
      &#60;/div&#62;</code></pre>
<p>This accomplishes the extra tab for documents, which then reveals a list of word docs and pdfs (that are loaded into the gallery of an individual post) when toggled.</p>
<p>You could change the 'post_mime_type' =&#62; 'application/pdf,application/msword', line to include other file types as appropriate. </p>
<p>Hope this helps someone else! </p>
<p>(PS- you can then add styling for the new documents div section in your CSS.)
</p></description>
		</item>

	</channel>
</rss>
