• Resolved christian70

    (@christian70)


    Hi. I’m using your plugin for the 1st time, I’ve found it easy and impressive. But I’ve got this problem and I don’t get what I’m missing: I’ve got a CPT (‘materials’) for which I created a custom taxonomy (‘materials_type’). I’ve tried to use the plugin within the custom taxonomy posts and it works perfectly if I open the category – o archive – page. But if I create a dedicated page with a simple WP query in order to display all custom posts ordered by plugin, there’s no way to get the custom order. What’s wrong with that? It should works same way, shouldn’t it? I tried to add ‘orderby’ => ‘menu_order’ to the query, but no effects. Any suggestion would be appreciated. Thanks.

    • This topic was modified 7 years, 1 month ago by christian70.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter christian70

    (@christian70)

    Sorry, I apolize: I didn’t realize that I must declare which taxonomy I’m querying in in the wp_query otherwise the plugin order doesn’t work. Sorry, again.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    hey Christian, glad you figured it. The plugin hooks where_posts and posts_orderby to return custom ordered lists of posts.

    However, these are by default suppressed in custom queries that use get_posts() function.

    Something to keep in mind.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category vs Page’ is closed to new replies.