<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Custom Post Type Permalinks &#8211; Part 2	</title>
	<atom:link href="https://www.shibashake.com/wp/custom-post-type-permalinks-part-2/feed" rel="self" type="application/rss+xml" />
	<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2</link>
	<description>Adventures in WordPress</description>
	<lastBuildDate>Mon, 29 Mar 2021 17:45:22 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9</generator>
	<item>
		<title>
		By: WordPress custom post type with custom permalink and tags &#8211; Ask your php questions		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-8#comment-957239</link>

		<dc:creator><![CDATA[WordPress custom post type with custom permalink and tags &#8211; Ask your php questions]]></dc:creator>
		<pubDate>Mon, 29 Mar 2021 17:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-957239</guid>

					<description><![CDATA[[&#8230;] Here is the code &#8230; With some help from https://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2 [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Here is the code &#8230; With some help from <a href="https://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2" rel="nofollow ugc">https://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2</a> [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Permalink for CPT without archive but including taxonomy returns 404 on all other pages and posts mới nhất năm 2020		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-8#comment-955060</link>

		<dc:creator><![CDATA[Permalink for CPT without archive but including taxonomy returns 404 on all other pages and posts mới nhất năm 2020]]></dc:creator>
		<pubDate>Thu, 12 Nov 2020 10:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-955060</guid>

					<description><![CDATA[[&#8230;] to target all posts and pages and not just the diensten custom post type. According to this link https://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2#conflict it can be resolved by adding a unique slug into the permalink structure. However when I do that it [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] to target all posts and pages and not just the diensten custom post type. According to this link <a href="https://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2#conflict" rel="nofollow ugc">https://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2#conflict</a> it can be resolved by adding a unique slug into the permalink structure. However when I do that it [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike iLL		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-8#comment-881891</link>

		<dc:creator><![CDATA[Mike iLL]]></dc:creator>
		<pubDate>Tue, 03 May 2016 14:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-881891</guid>

					<description><![CDATA[Still super-helpful. Thanks so much for taking the time.]]></description>
			<content:encoded><![CDATA[<p>Still super-helpful. Thanks so much for taking the time.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Maksim		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-8#comment-859400</link>

		<dc:creator><![CDATA[Maksim]]></dc:creator>
		<pubDate>Wed, 30 Sep 2015 11:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-859400</guid>

					<description><![CDATA[Hi, I need help.
I need url structure: http:/stgnlion.com/rajatieto/horoskoopit/kuukausihoroskooppi/syyskuu/2015/test

horoskoopit- just word
kuukausihoroskooppi - post type name
syyskuu - september on finish
2015 - year

so I create rewrite like this: $kuukausihoroskooppi_structure = &#039;/horoskoopit/kuukausihoroskooppi/%monthnum%/%year%/%kuukausihoroskooppi%&#039;;

And I don`t need post_slug in url, but when I remove %kuukausihoroskooppi% from revrite, then this page open like archive.php

And I need that month be not a number, it should be word so in $date I change code on: $date = explode(&quot; &quot;,date_i18n(&#039;Y F d H i s&#039;, $unixtime));

but then this page open like 404 page.

What`s wrong and can I do url structure like:
http:/stgnlion.com/rajatieto/horoskoopit/kuukausihoroskooppi/syyskuu/2015
without slug of post and month with word?]]></description>
			<content:encoded><![CDATA[<p>Hi, I need help.<br />
I need url structure: http:/stgnlion.com/rajatieto/horoskoopit/kuukausihoroskooppi/syyskuu/2015/test</p>
<p>horoskoopit- just word<br />
kuukausihoroskooppi &#8211; post type name<br />
syyskuu &#8211; september on finish<br />
2015 &#8211; year</p>
<p>so I create rewrite like this: $kuukausihoroskooppi_structure = &#8216;/horoskoopit/kuukausihoroskooppi/%monthnum%/%year%/%kuukausihoroskooppi%&#8217;;</p>
<p>And I don`t need post_slug in url, but when I remove %kuukausihoroskooppi% from revrite, then this page open like archive.php</p>
<p>And I need that month be not a number, it should be word so in $date I change code on: $date = explode(&#8221; &#8220;,date_i18n(&#8216;Y F d H i s&#8217;, $unixtime));</p>
<p>but then this page open like 404 page.</p>
<p>What`s wrong and can I do url structure like:<br />
http:/stgnlion.com/rajatieto/horoskoopit/kuukausihoroskooppi/syyskuu/2015<br />
without slug of post and month with word?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andhi Irawan		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-7#comment-805365</link>

		<dc:creator><![CDATA[Andhi Irawan]]></dc:creator>
		<pubDate>Mon, 25 May 2015 08:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-805365</guid>

					<description><![CDATA[Hi,
Nice tutorial
I have question, example I have a blog http://blog123.com
and product web http://productABC.com
In blog123 has post same name with productABC, like Gadget and Travel
I want to create a link automatically in blog123.
In blog123, for post Travel (http://blog123.com/travel), I create Show Product button link that link to http://productABC.com/travel.
I want that button link automatically via code something like http://[productABC base url]/[title from blog123 post title or attribute or post permalink]]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Nice tutorial<br />
I have question, example I have a blog <a href="http://blog123.com" rel="nofollow ugc">http://blog123.com</a><br />
and product web <a href="http://productABC.com" rel="nofollow ugc">http://productABC.com</a><br />
In blog123 has post same name with productABC, like Gadget and Travel<br />
I want to create a link automatically in blog123.<br />
In blog123, for post Travel (<a href="http://blog123.com/travel" rel="nofollow ugc">http://blog123.com/travel</a>), I create Show Product button link that link to <a href="http://productABC.com/travel" rel="nofollow ugc">http://productABC.com/travel</a>.<br />
I want that button link automatically via code something like <a href="http://[productABC" rel="nofollow ugc">http://[productABC</a> base url]/[title from blog123 post title or attribute or post permalink]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rolo		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-7#comment-786957</link>

		<dc:creator><![CDATA[Rolo]]></dc:creator>
		<pubDate>Sat, 25 Apr 2015 23:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-786957</guid>

					<description><![CDATA[I spent HOURS trying to figure this out and your post saved me. I love wp and I hate wp. Thank you!!!!!!]]></description>
			<content:encoded><![CDATA[<p>I spent HOURS trying to figure this out and your post saved me. I love wp and I hate wp. Thank you!!!!!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gerard		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-7#comment-625169</link>

		<dc:creator><![CDATA[Gerard]]></dc:creator>
		<pubDate>Wed, 21 Jan 2015 02:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-625169</guid>

					<description><![CDATA[Is it possible to remove the slug of a custom post type? I would like to use them a lot but with the following URL structure: first the domain, then the postname, without the custom post type slug between the domain and the postname slug.

Thanks in advance!]]></description>
			<content:encoded><![CDATA[<p>Is it possible to remove the slug of a custom post type? I would like to use them a lot but with the following URL structure: first the domain, then the postname, without the custom post type slug between the domain and the postname slug.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-5#comment-484903</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Wed, 19 Nov 2014 21:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-484903</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-5#comment-484628&quot;&gt;Connor&lt;/a&gt;.

Sounds like a permalink conflict issue.
http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2#conflict]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-5#comment-484628">Connor</a>.</p>
<p>Sounds like a permalink conflict issue.<br />
<a href="http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2#conflict" rel="nofollow ugc">http://shibashake.com/wordpress-theme/custom-post-type-permalinks-part-2#conflict</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Connor		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-5#comment-484628</link>

		<dc:creator><![CDATA[Connor]]></dc:creator>
		<pubDate>Wed, 19 Nov 2014 19:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-484628</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-5#comment-12778&quot;&gt;ShibaShake&lt;/a&gt;.

This gives me a 404 as well. The only way for me to avoid the 404 is with something like this: 

global $wp_rewrite;
	$story_structure = &#039;/stories/%story%&#039;;
	$wp_rewrite-&#062;add_rewrite_tag(&quot;%story%&quot;, &#039;([^/]+)&#039;, &quot;story=&quot;);
	$wp_rewrite-&#062;add_permastruct(&#039;story&#039;, $story_structure, false);

Anything involving %year%/%monthnum%/%day% results in a 404. Any thoughts?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-5#comment-12778">ShibaShake</a>.</p>
<p>This gives me a 404 as well. The only way for me to avoid the 404 is with something like this: </p>
<p>global $wp_rewrite;<br />
	$story_structure = &#8216;/stories/%story%&#8217;;<br />
	$wp_rewrite-&gt;add_rewrite_tag(&#8220;%story%&#8221;, &#8216;([^/]+)&#8217;, &#8220;story=&#8221;);<br />
	$wp_rewrite-&gt;add_permastruct(&#8216;story&#8217;, $story_structure, false);</p>
<p>Anything involving %year%/%monthnum%/%day% results in a 404. Any thoughts?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marc Steel		</title>
		<link>https://shibashake.com/wp/custom-post-type-permalinks-part-2/comment-page-7#comment-97186</link>

		<dc:creator><![CDATA[Marc Steel]]></dc:creator>
		<pubDate>Tue, 29 Apr 2014 02:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6451#comment-97186</guid>

					<description><![CDATA[Thank you so much. This was just a giant timesaver, much obliged.]]></description>
			<content:encoded><![CDATA[<p>Thank you so much. This was just a giant timesaver, much obliged.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 8/24 objects using disk
Page Caching using disk: enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn.shibashake.com
Lazy Loading (feed)
Minified using disk
Database Caching using disk (Request-wide modification query)

Served from: www.shibashake.com @ 2024-12-17 02:16:23 by W3 Total Cache
-->