nsp-code
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Types Order] [Plugin: Post Types Order] Show draft postsHello
Yes, it show all publish/draft posts. An option will be integrated in the next version to allow if drafts should be included or not.We already contacted the plugin author and hopefully they will make a fix asap.
There is a issue when using the plugin along with Easy Content Type, which contain an option called Disable Taxonomy Archives Fix which create the problem. So keeping this checked, everything will work fine.
Is the Autosort feature turned ON?
Hey Roc
As you figured out, you will need to activate the plugin within each individual blogs instead use the Network Activated. This is not a bug, it require additional code on which we are still working.Thanks
Sorry but it appear you didn’t really understand how WordPress Queries works, i suggest checking with http://codex.ww.wp.xz.cn/Class_Reference/WP_Query to get a better idea about queries, and using the menu_order parameter.
Either using the next_post_link appear to be clear for you check this link http://codex.ww.wp.xz.cn/Next_and_Previous_Links. Also you can’t use menu_order along with this without further codding.
No.. i’am not saying that the plugin breaks the native next/previous.
Just turn the Autosort to OFF and the next/previous will works like before. But you will need to use the menu_order within your queries to receive the posts in the defined order. http://codex.ww.wp.xz.cn/Class_Reference/WP_QueryThe advanced version include previous_post_type_link/next_post_type_link function which helps for a better navigation through posts using the custom order, no matter the Autosort status.
Hope it make sense.
Can you confirm that within your Appearance -> Menus (wp-admin/nav-menus.php) you created the Menu Name and choose a selection from Theme Location on the left.
If this still does not fixed your issue, can you please contact us at [email protected] so we can check into this.Sorry this might be a little ambiguous due to the code limitations. Only the Advanced Post Types Order contain additional tools to display the next /previous custom post type within the archive or a certain term/taxonomy. For more details you can check this post
Indeed using the internal menus will fix the issue while keep the Autosort to ON
Hi
Thanks for using our plugin.
I see what you mean, you will need to turn OFF the autosort within the plugin settings page and then update the queries with ‘orderby’ => ‘menu_order’.If you use the advanced version, you can try to switch to ON/Custom or add the ‘force_no_custom_order’ => TRUE to your query to ignore the custom order.
Thanks
The free version works only with hierarchical taxonomies. So you should switch to such type or you may consider to upgrade to Advanced Taxonomy Terms Order which support both types, also allot of other features.
Thanks for your suggestions.
Currently those features are available along with the Advanced Post Types Order, we may migrate at a later date those to the free version, while we incorporate more features in the paid plugin.Thanks
To retrieve the post data you can use the following:
apto_get_adjacent_post ($ignore_custom_sort, $term_id = ”, $taxonomy = ”, $previous)
The $previous require a Boolean variable, TRUE if you need previous post or FALSE for next.
The function is relative to the default query $post variable content, so if you need to use it along with a custom query, make sure you use a new WP_Query call.http://codex.ww.wp.xz.cn/Class_Reference/WP_Query
This is an expected behavior under the ON/Custom AutoSort Option. Only when AutoSort is turned ON the next/previous links are updated.
In this case you will need to use the previous_post_type_link and next_post_type_link functions which should replace the default previous_post_link and next_post_link
Usage example:
previous_post_type_link( ‘%link’, __( ‘<span class=”meta-nav”>←</span> Previous’, ‘twentyeleven’ ), FALSE, ’14’, ‘category’ );where the arguments are
$format, $link, $ignore_custom_order, $term_id, $taxonomy_name