<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: Is it possible to use custom post templates in Broadscope?</title>
		<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope</link>
		<description>Support Forum - Topic: Is it possible to use custom post templates in Broadscope?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 10:04:14 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/is-it-possible-to-use-custom-post-templates-in-broadscope" rel="self" type="application/rss+xml" />

		<item>
			<title>ebsgdoso on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-29385</link>
			<pubDate>Thu, 13 Oct 2011 08:27:27 +0000</pubDate>
			<dc:creator>ebsgdoso</dc:creator>
			<guid isPermaLink="false">29385@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks dude - I did actually try the same thing with the category slug too i.e. archive-treatment-types and that didn't work either. &#60;/p&#62;
&#60;p&#62;I'll check out your link on the codex
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-29379</link>
			<pubDate>Thu, 13 Oct 2011 05:54:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">29379@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I think the reason is that archive templates allow slug or ID extensions for CATEGORIES only: &#60;a href=&#34;http://codex.wordpress.org/Category_Templates&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Category_Templates&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;In your case WP would use the template if a category slug is &#34;treatment-types&#34; but you're trying to use the template with a post type slug. Not sure what's the best workaround but I can give you a hint: I'd use the get_pst_type function: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_post_type&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_post_type&#60;/a&#62; in combination with &#34;if&#34; &#38;amp; &#34;break&#34; to load a different loop template.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ebsgdoso on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-29336</link>
			<pubDate>Wed, 12 Oct 2011 16:15:10 +0000</pubDate>
			<dc:creator>ebsgdoso</dc:creator>
			<guid isPermaLink="false">29336@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I'm having trouble displaying a different archive template for a custom post type.&#60;/p&#62;
&#60;p&#62;I have a custom post type called &#34;treatment&#34; and I want to setup a different archive template for this that doesn't show the date.&#60;/p&#62;
&#60;p&#62;The custom post type slug is:&#60;br /&#62;
treatment&#60;/p&#62;
&#60;p&#62;The taxonomy slug is:&#60;br /&#62;
treatment-types&#60;/p&#62;
&#60;p&#62;I'm using a child theme and I tried duplicating the normal archive.php file from the main theme, renaming it to archive-treatment and then&#60;br /&#62;
changing line 27 to:&#60;/p&#62;
&#60;p&#62; &#60;code&#62;get_template_part( &#38;#39;includes/loop&#38;#39;, &#38;#39;archive-treatment&#38;#39; );&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;I've then created the loop-archive-treatment.php file in the includes folder and removed the date and time from that.&#60;/p&#62;
&#60;p&#62;This doesn't seem to have any effect though. &#60;/p&#62;
&#60;p&#62;What am I doing wrong? The same prinicple seems to work for template files so I'm not sure what's special about archives....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-27123</link>
			<pubDate>Fri, 16 Sep 2011 05:56:28 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">27123@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You can try to replace following code in includes/loop-index.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;blog-meta one_fifth&#38;quot;&#38;gt;

				&#38;lt;span class=&#38;#39;post-date-comment-container&#38;#39;&#38;gt;
					&#38;lt;span class=&#38;#39;date-container&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;d&#38;#39;) ?&#38;gt;&#38;lt;strong&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/strong&#38;gt;&#38;lt;?php the_time(&#38;#39;Y&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;
					&#38;lt;span class=&#38;#39;comment-container&#38;#39;&#38;gt;&#38;lt;?php comments_popup_link(&#38;quot;&#38;lt;strong&#38;gt;0&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comments&#38;#39;,&#38;#39;avia_framework&#38;#39;), &#38;quot;&#38;lt;strong&#38;gt;1&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comment&#38;#39; ,&#38;#39;avia_framework&#38;#39;),
																			  &#38;quot;&#38;lt;strong&#38;gt;%&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comments&#38;#39;,&#38;#39;avia_framework&#38;#39;),&#38;#39;comments-link&#38;#39;,
																			  &#38;quot;&#38;lt;strong&#38;gt;&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comments&#38;lt;br/&#38;gt;Off&#38;#39;,&#38;#39;avia_framework&#38;#39;)
																			  ); ?&#38;gt;
					&#38;lt;/span&#38;gt;

				&#38;lt;/span&#38;gt;	

				&#38;lt;?php 

				$cats = get_the_category();
				if(!empty($cats))
				{
					echo &#38;#39;&#38;lt;span class=&#38;quot;blog-categories&#38;quot;&#38;gt;&#38;#39;;
					echo &#38;#39;&#38;lt;strong&#38;gt;Categories:&#38;lt;/strong&#38;gt;&#38;#39;;
					the_category(&#38;#39;, &#38;#39;);
					echo &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
				}

				if(has_tag())
				{
					echo &#38;#39;&#38;lt;span class=&#38;quot;blog-tags&#38;quot;&#38;gt;&#38;#39;;
					the_tags(&#38;#39;&#38;lt;strong&#38;gt;&#38;#39;.__(&#38;#39;Tags: &#38;#39;,&#38;#39;avia_frameworkt&#38;#39;).&#38;#39;&#38;lt;/strong&#38;gt;&#38;#39;);
					echo &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
				}
				?&#38;gt;

			&#38;lt;/div&#38;gt;&#38;lt;!--end meta info--&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if (get_post_type() != &#38;quot;portfolio&#38;quot;){ ?&#38;gt;

	        &#38;lt;div class=&#38;quot;blog-meta one_fifth&#38;quot;&#38;gt;

				&#38;lt;span class=&#38;#39;post-date-comment-container&#38;#39;&#38;gt;
					&#38;lt;span class=&#38;#39;date-container&#38;#39;&#38;gt;&#38;lt;?php the_time(&#38;#39;d&#38;#39;) ?&#38;gt;&#38;lt;strong&#38;gt;&#38;lt;?php the_time(&#38;#39;M&#38;#39;) ?&#38;gt;&#38;lt;/strong&#38;gt;&#38;lt;?php the_time(&#38;#39;Y&#38;#39;) ?&#38;gt;&#38;lt;/span&#38;gt;
					&#38;lt;span class=&#38;#39;comment-container&#38;#39;&#38;gt;&#38;lt;?php comments_popup_link(&#38;quot;&#38;lt;strong&#38;gt;0&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comments&#38;#39;,&#38;#39;avia_framework&#38;#39;), &#38;quot;&#38;lt;strong&#38;gt;1&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comment&#38;#39; ,&#38;#39;avia_framework&#38;#39;),
																			  &#38;quot;&#38;lt;strong&#38;gt;%&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comments&#38;#39;,&#38;#39;avia_framework&#38;#39;),&#38;#39;comments-link&#38;#39;,
																			  &#38;quot;&#38;lt;strong&#38;gt;&#38;lt;/strong&#38;gt; &#38;quot;.__(&#38;#39;Comments&#38;lt;br/&#38;gt;Off&#38;#39;,&#38;#39;avia_framework&#38;#39;)
																			  ); ?&#38;gt;
					&#38;lt;/span&#38;gt;

				&#38;lt;/span&#38;gt;	

				&#38;lt;?php 

				$cats = get_the_category();
				if(!empty($cats))
				{
					echo &#38;#39;&#38;lt;span class=&#38;quot;blog-categories&#38;quot;&#38;gt;&#38;#39;;
					echo &#38;#39;&#38;lt;strong&#38;gt;Categories:&#38;lt;/strong&#38;gt;&#38;#39;;
					the_category(&#38;#39;, &#38;#39;);
					echo &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
				}

				if(has_tag())
				{
					echo &#38;#39;&#38;lt;span class=&#38;quot;blog-tags&#38;quot;&#38;gt;&#38;#39;;
					the_tags(&#38;#39;&#38;lt;strong&#38;gt;&#38;#39;.__(&#38;#39;Tags: &#38;#39;,&#38;#39;avia_frameworkt&#38;#39;).&#38;#39;&#38;lt;/strong&#38;gt;&#38;#39;);
					echo &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
				}
				?&#38;gt;

			&#38;lt;/div&#38;gt;&#38;lt;!--end meta info--&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>d4web on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-27078</link>
			<pubDate>Thu, 15 Sep 2011 17:38:10 +0000</pubDate>
			<dc:creator>d4web</dc:creator>
			<guid isPermaLink="false">27078@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I don't want my portfolio items to have the same date/comments area as my blog posts. How would I strip this from displaying on the portfolio items? Is this possible? Any help is appreciated.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-25001</link>
			<pubDate>Tue, 16 Aug 2011 15:03:02 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">25001@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that I could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davestewart on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-24998</link>
			<pubDate>Tue, 16 Aug 2011 13:47:41 +0000</pubDate>
			<dc:creator>davestewart</dc:creator>
			<guid isPermaLink="false">24998@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;That is good info!&#60;/p&#62;
&#60;p&#62;These really are great themes. Well done guys!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-24993</link>
			<pubDate>Tue, 16 Aug 2011 13:23:23 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24993@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You can create your own post meta elements by modyfing broadscope\includes\admin_option_pages\metabox.php or you can try to modify this plugin: &#60;a href=&#34;http://wordpress.org/extend/plugins/custom-post-template/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/custom-post-template/&#60;/a&#62;  if you need an ui solution :)&#60;/p&#62;
&#60;p&#62;But your shortcode seems to be a straight forward (and maybe the most flexible) solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davestewart on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-24989</link>
			<pubDate>Tue, 16 Aug 2011 13:15:45 +0000</pubDate>
			<dc:creator>davestewart</dc:creator>
			<guid isPermaLink="false">24989@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ah, sweet. I like how the TwentyTen theme has the dropdown built in.&#60;/p&#62;
&#60;p&#62;In the end I went with the shortcode idea. It works great, and I can edit it directly in the WP editor:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function shortcode_include($atts)
{
	// variables
		$file = WP_CONTENT_DIR . &#38;quot;/documentation/assets/html/complete/&#38;quot; . $atts[&#38;#39;file&#38;#39;];
		if(! preg_match(&#38;#39;%.html$%&#38;#39;, $file))
		{
			$file = $file . &#38;#39;.html&#38;#39;;
		}

	// load file
		if(file_exists($file))
		{
			$html	= file_get_contents($file);
			if (preg_match(&#38;#39;%&#38;lt;body.+&#38;gt;([\s\S]+)&#38;lt;/body&#38;gt;%&#38;#39;, $html, $matches))
			{
				return $matches[1];
			}
			else
			{
				return &#38;quot;Could not determine body tag in &#38;#39;$file&#38;#39;.&#38;quot;;
			}
		}
		else
		{
			return &#38;quot;The file &#38;#39;$file&#38;#39; does not exist.&#38;quot;;
		}
}

add_shortcode(&#38;#39;include&#38;#39;, &#38;#39;shortcode_include&#38;#39;);									  

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Example code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[include file=&#38;quot;collections&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Thanks for your input though!&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Dave
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-24985</link>
			<pubDate>Tue, 16 Aug 2011 12:39:57 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24985@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
you can use the get_template_part function: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_template_part&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_template_part&#60;/a&#62; to pull certain templates. I can imagine several ways to use this function with dynamic variables. I.e. you can hardcode the path to the templates and set the template names with post meta values, a shortcode or you could add your own post meta selection field. Kriesi uses this function extebsively - i.e, in single.php he calls the post content with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;get_template_part( &#38;#39;includes/loop&#38;#39;, &#38;#39;index&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and uses the same template for blogs, archives, etc.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davestewart on "Is it possible to use custom post templates in Broadscope?"</title>
			<link>http://www.kriesi.at/support/topic/is-it-possible-to-use-custom-post-templates-in-broadscope#post-24984</link>
			<pubDate>Tue, 16 Aug 2011 12:16:05 +0000</pubDate>
			<dc:creator>davestewart</dc:creator>
			<guid isPermaLink="false">24984@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I'm using wordpress to build a whole load of documentation, and I'm building all the pages in HTML locally, then copying and pasting the body content to the WP editor, each time I make a change.&#60;/p&#62;
&#60;p&#62;I just realised today that actually, I could just upload the original HTML files to a folder somewhere on the server, then use a template to pull in the right content.&#60;/p&#62;
&#60;p&#62;In the TwentyTen theme I see:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;content-gallery.php
content-aside.php
etc&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is this possible within Broadscope's architecture?&#60;/p&#62;
&#60;p&#62;The other option I just thought of now would be to write a shortcode function and format it so it pulls in my content like so:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[include file=&#38;quot;path/to/file.html&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Advice (or alternate ideas) would be much appreciated!&#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
Dave
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
