<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>BlueOwlCreative  &#187;  Topic: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type</title>
		<atom:link href="http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/feed/" rel="self" type="application/rss+xml" />
		<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/feed/</link>
		<description></description>
		<pubDate>Tue, 21 Jul 2026 06:06:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.5.3-5249</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-24227</guid>
					<title><![CDATA[How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-24227</link>
					<pubDate>Wed, 04 Nov 2015 15:41:43 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>Hi everyone,</p>
<p>As we have received a few requests for a tutorial on changing the default theme&#8217;s portfolio_item slug we are willing to show the whole process in a step by step guide.</p>
<p>If you are just <strong>changing just the slug name (portfolio_item)</strong> you don’t need to go through the whole process below, simply change the slug into your \wp-content\plugins\fortuna_portfolio_cpt\fortuna_portfolio_cpt.php</p>
<p><code>'rewrite' =&gt; array('slug' =&gt; 'portfolio_item'),</code></p>
<p>Change the “portfolio_item” to what you like, then flush your rewrite rules (switching back to regular permalinks in &#8211; Settings -&gt; Permalinks and then back to the fancy ones should do the job too).</p>
<p><strong>If you want to change the name of the whole custom post type or duplicate the existing one</strong> here&#8217;s what you need to do:<br />
In the example below we shall change the &#8220;portfolio&#8221; Custom Post Type to &#8220;book&#8221; just for the sake of this tutorial.</p>
<p>1. We make a copy of the plugin file found in \wp-content\plugins\fortuna_portfolio_cpt\fortuna_portfolio_cpt.php &#8211; this is the plugin responsible for registering the Portfolio custom post type. We shall name it and place it in a directory according to its new name &#8220;book&#8221; so: \wp-content\plugins\fortuna_book_cpt\fortuna_book_cpt.php</p>
<p>2. We edit the newly created fortuna_book_cpt.php file and replace all occurrences of &#8220;portfolio&#8221; with &#8220;book&#8221;. At this point in order to finalize the registration of our new &#8220;Book&#8221; custom post type we should go to WP Dashboard and activate our &#8220;Fortuna Book CPT&#8221; plugin and deactivate the &#8220;Fortuna Portfolio CPT&#8221;.</p>
<p>3. Next we need to setup the correct templates for this newly created post type. We can copy over the portfolio templates into your Child Theme and rename them accordingly followin the new &#8220;book&#8221; nomenclature.</p>
<p>We&#8217;ll need:</p>
<p><code>single-portfolio.php</code> &#8211; single-book.php<br />
<code>taxonomy-portfolio_category.php</code> - taxonomy-book_category.php</p>
<p><code>portfolio-three-column.php</code> &#8211; book-three-column.php</p>
<p>4. If you will be using the portfolio-three-column.php (the Template with the category filter dropdown) you will need to update inside of it the call to the &#8220;boc_get_portfolio_items&#8221; method, replace it with &#8220;boc_get_book_items&#8221; then edit your Child theme&#8217;s functions.php (create it in the Child theme&#8217;s root folder if it doesn&#8217;t exist) file and add this new method:</p>
<pre><code>if( ! function_exists( 'boc_get_book_items' ) ) { 
	function boc_get_book_items($limit = 10, $order_by = 'rand', $order = 'DESC', $category='', $paged = 1) {

		$args = array(
			'ignore_sticky_posts' =&gt; 0,
			'post_type' =&gt; 'book',
			'posts_per_page' =&gt; (int)$limit,
			'orderby'=&gt; $order_by,
			'order'=&gt; $order,
			'paged' =&gt; $paged,
			'book_category' =&gt; $category, 
		);
		$query = new WP_Query($args);
		wp_reset_postdata();	
		return $query;
	}
}</code></pre>
<p>You also need to change at the top of the template in the comments the template name:<br />
<code>Template Name: Books Page</code>, then the references to the new CPT category taxonomy:</p>
<p><code>get_terms('book_category')</code></p>
<p>and</p>
<p><code>get_the_terms($post-&gt;ID, 'book_category')</code></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28474</guid>
					<title><![CDATA[Reply To: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28474</link>
					<pubDate>Thu, 12 May 2016 14:52:04 +0000</pubDate>
					<dc:creator>Travers</dc:creator>

					<description>
						<![CDATA[
						<p>Hey, Can you explain step 3 a little more?  Do i deactivate the whole theme and load up the files with the newly named php files and do I change every word inside those files with my new name?<br />
I couldn&#8217;t find this phase boc_get_portfolio_items in the 3 column php, where is it?<br />
And with step 4 do I add the code into Fortuna&#8217;s main theme functions php?</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28482</guid>
					<title><![CDATA[Reply To: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28482</link>
					<pubDate>Fri, 13 May 2016 08:18:46 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>Hi again Travers,</p>
<p>Are you duplicating the portfolio or just want to change the slug name?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28489</guid>
					<title><![CDATA[Reply To: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28489</link>
					<pubDate>Fri, 13 May 2016 16:06:41 +0000</pubDate>
					<dc:creator>Travers</dc:creator>

					<description>
						<![CDATA[
						<p>Change the name.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28500</guid>
					<title><![CDATA[Reply To: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-28500</link>
					<pubDate>Sat, 14 May 2016 08:11:13 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>If you are just changing the slug name (portfolio_item) you don&#8217;t need to go through the whole process above, simply change the slug into your \wp-content\plugins\fortuna_portfolio_cpt\fortuna_portfolio_cpt.php</p>
<p><code>&#039;rewrite&#039; =&gt; array(&#039;slug&#039; =&gt; &#039;portfolio_item&#039;),</code></p>
<p>Change the &#8220;portfolio_item&#8221; to what you like, then flush your rewrite rules (switching back to regular permalinks and then back to the fancy ones should do the job too).</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-31606</guid>
					<title><![CDATA[Reply To: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-31606</link>
					<pubDate>Fri, 16 Jun 2017 20:17:24 +0000</pubDate>
					<dc:creator>ebcf</dc:creator>

					<description>
						<![CDATA[
						<p>When I change &#8216;rewrite&#8217; =&gt; array(&#8216;slug&#8217; =&gt; &#8216;portfolio_item&#8217;),<br />
to<br />
&#8216;rewrite&#8217; =&gt; array(&#8216;slug&#8217; =&gt; &#8216;community_update&#8217;),</p>
<p>I get a 404 on all post even after editing and saving all of them</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-31609</guid>
					<title><![CDATA[Reply To: How to change Portfolio&#8217;s slug from portfolio_item to something else or renaming the whole Custom Post type]]></title>
					<link>http://blueowlcreative.com/support_wp/forums/topic/how-to-change-portfolios-slug-from-portfolio_item-to-something-else/#post-31609</link>
					<pubDate>Mon, 19 Jun 2017 06:43:55 +0000</pubDate>
					<dc:creator>BlueOwl</dc:creator>

					<description>
						<![CDATA[
						<p>You need to go to Settings -> Permalinks, then reset to default, then set back to what you currently have <img src="http://blueowlcreative.com/support_wp/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /> </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

