<?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 - Tag: hierarchical - Recent Posts</title>
		<link>http://www.kriesi.at/support/tags/hierarchical</link>
		<description>Support Forum - Tag: hierarchical - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 07:12: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/tags/hierarchical" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-34026</link>
			<pubDate>Tue, 06 Dec 2011 11:01:40 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">34026@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that you found a solution. Basically following code outputs the right url - however it doesn't work for me - the url itself is correct but I get a 404 error when I try to view portfolio items...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;post_type_link&#38;#39;, &#38;#39;my_post_type_link&#38;#39;, 1, 3);
function my_post_type_link( $post_link, $post = 0, $leavename = FALSE ) {
  if ( strpos(&#38;#39;%issue_project%&#38;#39;, $post_link) === &#38;#39;FALSE&#38;#39; ) {
    return $post_link;
  }
  if ( is_object($post) ) {
    $post_id = $post-&#38;gt;ID;
  } else {
    $post_id = $post;
    $post = get_post($post_id);
  }
  if ( !is_object($post) &#124;&#124; $post-&#38;gt;post_type != &#38;#39;portfolio&#38;#39; ) {
    return $post_link;
  }

  $portfolio_cat = &#38;#39;&#38;#39;;
  $portfolio_cat_slug = get_the_terms(get_the_ID(), &#38;#39;portfolio_entries&#38;#39;);
  $terms = array();
if ( $portfolio_cat_slug &#38;amp;&#38;amp; ! is_wp_error( $terms ) ) :
	foreach($portfolio_cat_slug as $term ) {
		$portfolio_cat[] = $term-&#38;gt;name;
	}
endif;
	$portfolio_cat = $portfolio_cat[0];

  $project_slug = $portfolio_cat;

  if ( !$project_slug ) { // remove project prefix
    return str_replace(&#38;#39;%issue_project%&#38;#39;, &#38;#39;&#38;#39;, $post_link);
  }
  // put project slug in place of %issue_project%
  return str_replace(&#38;#39;%issue_project%&#38;#39;, &#38;#39;portfolio/&#38;#39;.$project_slug, $post_link);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>lazybear on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-34013</link>
			<pubDate>Tue, 06 Dec 2011 10:00:22 +0000</pubDate>
			<dc:creator>lazybear</dc:creator>
			<guid isPermaLink="false">34013@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Through a process that involves more nasty looking hacks and work-arounds than I dare repeat, I have a mostly-functional workaround.&#60;/p&#62;
&#60;p&#62;It's not ideal. It's by no means any sort of recommended plan of attack, and it involves a mix of categories, portfolio categories, page-attributes, parent portfolio items, custom templates for custom post, and other assorted crap... but it works.&#60;/p&#62;
&#60;p&#62;So.. um... 'yay'.. I think. lol.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lazybear on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-33972</link>
			<pubDate>Mon, 05 Dec 2011 16:45:48 +0000</pubDate>
			<dc:creator>lazybear</dc:creator>
			<guid isPermaLink="false">33972@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;OK... here's where I am at so far.. I have categories (normal and special) showing and applying on my portfolio items, but I can't seem to get either to actually go as part of the damn URL. I've tried everything I can think of, and everything that anyone else seems to have written about. At this stage, I don't care if it is the taxonomy 'Portfolio Categories' or the standard WP categories that gets appended to this URL, as long as it's one of them.&#60;/p&#62;
&#60;p&#62;My portfolio.php file currently looks like this:&#60;/p&#62;
&#60;p&#62;-------------------------------------------------------------------&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
$pageinfo = array('full_name' =&#38;gt; 'Portfolio Options', 'optionname'=&#38;gt;'portfolio', 'child'=&#38;gt;true, 'filename' =&#38;gt; basename(__FILE__));&#60;/p&#62;
&#60;p&#62;$options = array (&#60;/p&#62;
&#60;p&#62;	array(	&#34;type&#34; =&#38;gt; &#34;open&#34;),&#60;/p&#62;
&#60;p&#62;	array(  &#34;name&#34; =&#38;gt; &#34;Portfolio Image Link&#34;,&#60;br /&#62;
			&#34;desc&#34; =&#38;gt; &#34;When clicking on a Portfolio Image what should happen?&#34;,&#60;br /&#62;
            &#34;id&#34; =&#38;gt; &#34;portfolio_click&#34;,&#60;br /&#62;
            &#34;type&#34; =&#38;gt; &#34;radio&#34;,&#60;br /&#62;
            &#34;buttons&#34; =&#38;gt; array('Big Image opens in Lightbox','Show Portfolio Single Post'),&#60;br /&#62;
            &#34;std&#34; =&#38;gt; 1),   &#60;/p&#62;
&#60;p&#62;	array(	&#34;type&#34; =&#38;gt; &#34;close&#34;),&#60;/p&#62;
&#60;p&#62;	array(  &#34;type&#34; =&#38;gt; &#34;portfolio&#34;,&#60;br /&#62;
			&#34;taxonomy&#34; =&#38;gt; &#34;portfolio_entries&#34;&#60;br /&#62;
		)&#60;br /&#62;
);&#60;/p&#62;
&#60;p&#62;$options_page = new kriesi_option_pages($options, $pageinfo);&#60;/p&#62;
&#60;p&#62;######################################################################&#60;br /&#62;
# POST TYPE&#60;br /&#62;
######################################################################&#60;/p&#62;
&#60;p&#62;	add_action('init', 'portfolio_register');&#60;/p&#62;
&#60;p&#62;	add_action('init', 'portfolio_add_default_boxes');&#60;/p&#62;
&#60;p&#62;	add_action('init', 'portfolio_taxonomy');&#60;/p&#62;
&#60;p&#62;	function portfolio_add_default_boxes() {&#60;br /&#62;
		register_taxonomy_for_object_type('category', 'portfolio');&#60;br /&#62;
		register_taxonomy_for_object_type('post_tag', 'portfolio');&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function portfolio_register() {&#60;br /&#62;
		  $labels = array(&#60;br /&#62;
		    'name' =&#38;gt; _x('Portfolio Items', 'post type general name'),&#60;br /&#62;
		    'singular_name' =&#38;gt; _x('Portfolio Entry', 'post type singular name'),&#60;br /&#62;
		    'add_new' =&#38;gt; _x('Add New', 'portfolio'),&#60;br /&#62;
		    'add_new_item' =&#38;gt; __('Add New Portfolio Entry'),&#60;br /&#62;
		    'edit_item' =&#38;gt; __('Edit Portfolio Entry'),&#60;br /&#62;
		    'new_item' =&#38;gt; __('New Portfolio Entry'),&#60;br /&#62;
		    'view_item' =&#38;gt; __('View Portfolio Entry'),&#60;br /&#62;
		    'search_items' =&#38;gt; __('Search Portfolio Entries'),&#60;br /&#62;
		    'not_found' =&#38;gt;  __('No Portfolio Entries found'),&#60;br /&#62;
		    'not_found_in_trash' =&#38;gt; __('No Portfolio Entries found in Trash'),&#60;br /&#62;
		    'parent_item_colon' =&#38;gt; ''&#60;br /&#62;
		  );&#60;/p&#62;
&#60;p&#62;    	$args = array(&#60;br /&#62;
        	'labels' =&#38;gt; $labels,&#60;br /&#62;
			'taxonomies' =&#38;gt; array('category', 'post_tag', 'portfolio_entries'),&#60;br /&#62;
			'public' =&#38;gt; true,&#60;br /&#62;
        	'show_ui' =&#38;gt; true,&#60;br /&#62;
			'exclude_from_search' =&#38;gt; false,&#60;br /&#62;
        	'capability_type' =&#38;gt; 'post',&#60;br /&#62;
        	'hierarchical' =&#38;gt; true,&#60;br /&#62;
        	'rewrite' =&#38;gt; array(&#60;br /&#62;
					'slug'=&#38;gt;'media',&#60;br /&#62;
					'with_back'=&#38;gt;false&#60;br /&#62;
				),&#60;br /&#62;
        	'query_var' =&#38;gt; true,&#60;br /&#62;
        	'show_in_nav_menus'=&#38;gt; false,&#60;br /&#62;
        	'menu_position' =&#38;gt; 5,&#60;br /&#62;
        	'supports' =&#38;gt; array('title','thumbnail','excerpt','editor','comments','custom-fields','revisions','page-attributes')&#60;br /&#62;
        );&#60;/p&#62;
&#60;p&#62;    	register_post_type( 'portfolio' , $args );&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function portfolio_taxonomy() {&#60;br /&#62;
		register_taxonomy(&#34;portfolio_entries&#34;,&#60;br /&#62;
							array(&#34;portfolio&#34;),&#60;br /&#62;
							array(	&#34;hierarchical&#34; =&#38;gt; true,&#60;br /&#62;
									&#34;label&#34; =&#38;gt; &#34;Portfolio Categories&#34;,&#60;br /&#62;
									&#34;singular_label&#34; =&#38;gt; &#34;Portfolio Categories&#34;,&#60;br /&#62;
									&#34;rewrite&#34; =&#38;gt; true,&#60;br /&#62;
									&#34;query_var&#34; =&#38;gt; true&#60;/p&#62;
&#60;p&#62;								));&#60;/p&#62;
&#60;p&#62;	}&#60;/p&#62;
&#60;p&#62;	add_action('admin_init', 'flush_rewrite_rules');&#60;/p&#62;
&#60;p&#62;#portfolio_columns, &#38;lt;-  register_post_type then append _columns&#60;br /&#62;
add_filter(&#34;manage_edit-portfolio_columns&#34;, &#34;prod_edit_columns&#34;);&#60;br /&#62;
add_action(&#34;manage_posts_custom_column&#34;,  &#34;prod_custom_columns&#34;);&#60;/p&#62;
&#60;p&#62;function prod_edit_columns($columns){&#60;/p&#62;
&#60;p&#62;		$newcolumns = array(&#60;br /&#62;
			&#34;cb&#34; =&#38;gt; &#34;&#38;lt;input type=\&#34;checkbox\&#34; /&#38;gt;&#34;,&#60;br /&#62;
			&#34;title&#34; =&#38;gt; &#34;Title&#34;,&#60;br /&#62;
			&#34;portfolio_entries&#34; =&#38;gt; &#34;Categories&#34;&#60;br /&#62;
		);&#60;/p&#62;
&#60;p&#62;		$columns= array_merge($newcolumns, $columns);&#60;/p&#62;
&#60;p&#62;		return $columns;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;function prod_custom_columns($column){&#60;br /&#62;
		global $post;&#60;br /&#62;
		switch ($column)&#60;br /&#62;
		{&#60;br /&#62;
			case &#34;description&#34;:&#60;br /&#62;
				#the_excerpt();&#60;br /&#62;
				break;&#60;br /&#62;
			case &#34;price&#34;:&#60;br /&#62;
				#$custom = get_post_custom();&#60;br /&#62;
				#echo $custom[&#34;price&#34;][0];&#60;br /&#62;
				break;&#60;br /&#62;
			case &#34;portfolio_entries&#34;:&#60;br /&#62;
				echo get_the_term_list($post-&#38;gt;ID, 'portfolio_entries', '', ', ','');&#60;br /&#62;
				break;&#60;br /&#62;
		}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;------------------------------------------------------------------------------------------&#60;/p&#62;
&#60;p&#62;AAAAAhhhhhhhhhhhhhhhhhhhhhhh!!!!!!!!!!!!!!!!&#60;/p&#62;
&#60;p&#62;It's 2:36am.. I've been going around in circles for 4 hours now.. :'-(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lazybear on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-33963</link>
			<pubDate>Mon, 05 Dec 2011 14:28:04 +0000</pubDate>
			<dc:creator>lazybear</dc:creator>
			<guid isPermaLink="false">33963@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Dude,&#60;/p&#62;
&#60;p&#62;Yeah... I've actually been working through that one for a while (and part 2 - &#60;a href=&#34;http://xplus3.net/2010/10/04/wp-rewrite-tags-in-permalinks/)&#34; rel=&#34;nofollow&#34;&#62;http://xplus3.net/2010/10/04/wp-rewrite-tags-in-permalinks/)&#60;/a&#62;, and he makes sense until the 'Putting Things Together' bit, and then I totally lose what he's saying. lol.&#60;/p&#62;
&#60;p&#62;Combining it with this (&#60;a href=&#34;http://www.deluxeblogtips.com/2010/07/custom-post-type-with-categories-post.html)&#34; rel=&#34;nofollow&#34;&#62;http://www.deluxeblogtips.com/2010/07/custom-post-type-with-categories-post.html)&#60;/a&#62;, and so far I've got no initial slug, normal categories, tags, and custom fields for my portfolio items.. but can't seem to get the /parent_category/sub_category/ but to work. lol.&#60;/p&#62;
&#60;p&#62;Now they're just example.com/portfolio_item, lol.&#60;/p&#62;
&#60;p&#62;From what I understand, it involves using add_filter and then using str_replace, but I can't figure out exactly how to do it.&#60;/p&#62;
&#60;p&#62;My head hurts &#38;gt;.&#38;lt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-33946</link>
			<pubDate>Mon, 05 Dec 2011 13:20:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">33946@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I haven't tried the mod but maybe this tutorial will help you : &#60;a href=&#34;http://xplus3.net/2010/05/20/wp3-custom-post-type-permalinks/&#34; rel=&#34;nofollow&#34;&#62;http://xplus3.net/2010/05/20/wp3-custom-post-type-permalinks/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lazybear on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-33929</link>
			<pubDate>Mon, 05 Dec 2011 12:34:39 +0000</pubDate>
			<dc:creator>lazybear</dc:creator>
			<guid isPermaLink="false">33929@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Also, it doesn't really both me if there needs to be some element of an initial slug prior to the '/parent_category/child_category/portfolio_item_name' bit..&#60;/p&#62;
&#60;p&#62;i.e. &#34;http://www.example.com/media/parent_category/child_category/portfolio_item_name&#34; would also work.&#60;/p&#62;
&#60;p&#62;On a side note, the original suggestion Kriesi helped me with back at the start of the year to change /portfolio/ to /laugh/funny-pictures/ was this:&#60;/p&#62;
&#60;p&#62;theme_options/portfolio.php - line 54&#60;/p&#62;
&#60;p&#62;Change this:&#60;br /&#62;
rewrite=&#38;gt;'true' ,&#60;/p&#62;
&#60;p&#62;To this:&#60;br /&#62;
'rewrite' =&#38;gt; array('slug'=&#38;gt;'/laugh/funny-pictures/','with_front'=&#38;gt;true),&#60;/p&#62;
&#60;p&#62;But.. well.. that doesn't really help solve my current problem.&#60;/p&#62;
&#60;p&#62;Any suggestions? I'm in quite the bind with this one. &#38;gt;.&#38;lt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lazybear on "portfolio url - how to get example.com/portfolio_category/subcategory/post_name"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-url-how-to-get-examplecomportfolio_categorysubcategorypost_name#post-33920</link>
			<pubDate>Mon, 05 Dec 2011 09:36:12 +0000</pubDate>
			<dc:creator>lazybear</dc:creator>
			<guid isPermaLink="false">33920@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Heya,&#60;/p&#62;
&#60;p&#62;Currently, I have the url for my portfolio items as sitename.com/laugh/funny-pictures/'name of item'... problem is.. that first bit is hard coded in, and I want to add a section containing videos (and there will be sub categories thereof), which obviously will need a different URL. lol.&#60;/p&#62;
&#60;p&#62;How do I change the portfolio to use the full /%category%/%postname%/ permalink structure that I have my 'normal' posts using?&#60;/p&#62;
&#60;p&#62;This probably goes a bit beyond the scope of what is covered by the support, so I'm happy to part with a few dollars for the solution.. my main issue here is time (or lack thereof).&#60;/p&#62;
&#60;p&#62;Any and all help is greatly appreciated. :-)&#60;/p&#62;
&#60;p&#62;~LazyBear
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "IE8 IE9 scrolling issue / scroll jump"</title>
			<link>http://www.kriesi.at/support/topic/ie8-ie9-scrolling-issue-scroll-jump#post-27142</link>
			<pubDate>Fri, 16 Sep 2011 06:43:16 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">27142@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
I couldn't reproduce the bug with IE9 (I didn't try IE8). Maybe try to view the demo without iframe: &#60;a href=&#34;http://www.kriesi.at/themes/coalition/&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/themes/coalition/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ormandroid on "IE8 IE9 scrolling issue / scroll jump"</title>
			<link>http://www.kriesi.at/support/topic/ie8-ie9-scrolling-issue-scroll-jump#post-27100</link>
			<pubDate>Thu, 15 Sep 2011 22:14:40 +0000</pubDate>
			<dc:creator>ormandroid</dc:creator>
			<guid isPermaLink="false">27100@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Kriesi,&#60;br /&#62;
I’ve just purchased your theme which rocks, and have been running it through some tests.&#60;br /&#62;
Unfortunately I’ve come across a bug in IE8 &#38;amp; IE9 using the one page solution.&#60;br /&#62;
When you click the menu the page scrolls to the relevant area but automatically jumps back up to the top of the page.&#60;br /&#62;
(this can be seen on your preview site: &#60;a href=&#34;http://www.kriesi.at/themedemo/?theme=coalition)&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/themedemo/?theme=coalition)&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is this something you have come across before and is there a fix?&#60;/p&#62;
&#60;p&#62;Plus I would also like to add a second tier to the main menu so I can chapter my sections in a hierarchical manner.&#60;/p&#62;
&#60;p&#62;Is this possible or will I need to hand code?&#60;/p&#62;
&#60;p&#62;Cheers&#60;/p&#62;
&#60;p&#62;Paul
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
