{"id":4511014,"date":"2014-01-16T17:20:11","date_gmt":"2014-01-16T17:20:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/reorder-custom-post-type-post-navigation\/"},"modified":"2016-08-21T14:50:20","modified_gmt":"2016-08-21T14:50:20","slug":"reorder-custom-post-type-post-navigation","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/reorder-custom-post-type-post-navigation\/","title":{"rendered":"Reorder Custom Post Type Post Navigation"},"content":{"rendered":"<p>You can see the development site here: <a href=\"http:\/\/new.wearelfb.com\">new.wearelfb.com<\/a><\/p>\n<p>I am currently using your plugin to reorder the full list of Custom Post Types on my homepage and it works great.<\/p>\n<p>However, I want to use the same order once inside a Post to change the Post Navigation order so it matches the order of the homepage. See a post example here: <a href=\"http:\/\/new.wearelfb.com\/work\/main-street-dental\/\">http:\/\/new.wearelfb.com\/work\/main-street-dental\/<\/a><\/p>\n<p>I&#8217;m currently using a slightly altered TwentyThirteen function for the Post Nav:<\/p>\n<pre><code>if ( ! function_exists( &#039;twentythirteen_post_nav&#039; ) ) :\n\/**\n * Displays navigation to next\/previous post when applicable.\n*\n* @since Twenty Thirteen 1.0\n*\n* @return void\n*\/\nfunction twentythirteen_post_nav() {\n\tglobal $post;\n\n\t\/\/ Don&#039;t print empty markup if there&#039;s nowhere to navigate.\n\t$previous = ( is_attachment() ) ? get_post( $post-&gt;post_parent ) : get_adjacent_post( false, &#039;&#039;, true );\n\t$next     = get_adjacent_post( false, &#039;&#039;, false );\n\n\tif ( ! $next &amp;&amp; ! $previous )\n\t\treturn;\n\t?&gt;\n\t&lt;nav class=&quot;navigation post-navigation&quot; role=&quot;navigation&quot;&gt;\n\t\t&lt;div class=&quot;nav-links&quot;&gt;\n\n\t\t\t&lt;?php previous_post_link( &#039;%link&#039;, _x( &#039;&lt;span class=&quot;meta-nav&quot;&gt;\u2039&lt;\/span&gt;&lt;span class=&quot;nav-title prev&quot;&gt;%title&lt;\/span&gt;&#039;, &#039;Previous post link&#039;, &#039;twentythirteen&#039; ) ); ?&gt;\n\t\t\t&lt;?php next_post_link( &#039;%link&#039;, _x( &#039;&lt;span class=&quot;nav-title next&quot;&gt;%title&lt;\/span&gt;&lt;span class=&quot;meta-nav&quot;&gt;\u203a&lt;\/span&gt;&#039;, &#039;Next post link&#039;, &#039;twentythirteen&#039; ) ); ?&gt;\n\n\t\t&lt;\/div&gt;&lt;!-- .nav-links --&gt;\n\t&lt;\/nav&gt;&lt;!-- .navigation --&gt;\n\t&lt;?php\n}\nendif;<\/code><\/pre>\n<p>I have tried to implement the same loop array that I used to reorder the homepage list, but I cannot get this to work for the Post Navigation order.<\/p>\n<p>Is there a simple edit to the Post Navigation function that will gather the Reorder of the custom post types instead of the ID order?<\/p>\n<p>Thanks in advance for any help towards this issue!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/metronet-reorder-posts\/<\/p>\n","protected":false},"template":"","class_list":["post-4511014","topic","type-topic","status-closed","hentry","topic-tag-custom-post-type","topic-tag-post-nav","topic-tag-post-navigation"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4511014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4511014\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4511014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}