Title: Plugin overwrite my portfolio order!
Last modified: August 21, 2016

---

# Plugin overwrite my portfolio order!

 *  [Jespersmukkehansen](https://wordpress.org/support/users/jespersmukkehansen/)
 * (@jespersmukkehansen)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/plugin-overwrite-my-portfolio-order/)
 * Hi 😉
 * I have a little question.
 * The plugin overwrite my portfolio order, if I put the portfolio to ASC or DESC
   then nothing happens, only if I deactiverer plugin.
 * Heres the site and the portfolio is a theme feature:
    [http://ordrupgaard.dk/tidligere-udstillinger/](http://ordrupgaard.dk/tidligere-udstillinger/)
 * Can you help me ?
 * Greetings Jesper
 * [https://wordpress.org/plugins/post-types-order/](https://wordpress.org/plugins/post-types-order/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [herooutoftime](https://wordpress.org/support/users/herooutoftime/)
 * (@herooutoftime)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-overwrite-my-portfolio-order/#post-4929638)
 * Hi [@jespersmukkehansen](https://wordpress.org/support/users/jespersmukkehansen/),
 * if you’re still dealing with this issue, there’s an easy solution.
    Find the 
   file `post-types-order.php` in the plugins folder and add your custom post-type
   around line **84**.
 * In my case the post-type was `project_media`, just replace this with your post-
   type.
 *     ```
       if (isset($query->query_vars['post_type']) && ((is_array($query->query_vars['post_type']) && in_array("project_media", $query->query_vars['post_type'])) || ($query->query_vars['post_type'] == "project_media")))
                  return $orderBy;
       ```
   
 * Hope it helps.
 *  Thread Starter [Jespersmukkehansen](https://wordpress.org/support/users/jespersmukkehansen/)
 * (@jespersmukkehansen)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-overwrite-my-portfolio-order/#post-4929639)
 * Hi Herooutoftime 😉
 * Thanks for answer 😉
 * I have to lines with the same text:
 *     ```
       if (isset($query->query_vars['post_type']) && ((is_array($query->query_vars['post_type']) && in_array("project_media", $query->query_vars['post_type'])) || ($query->query_vars['post_type'] == "project_media")))
                  return $orderBy;
       ```
   
 * line 80 and 81. I have try to change it whit your text but the problem is still
   there! Im not a code expert! ;-(
 * Hope you can help me! 😉
 * Best regards,
    Jesper

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin overwrite my portfolio order!’ is closed to new replies.

 * ![](https://ps.w.org/post-types-order/assets/icon-128x128.png?rev=1226428)
 * [Post Types Order](https://wordpress.org/plugins/post-types-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-types-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-types-order/)
 * [Active Topics](https://wordpress.org/support/plugin/post-types-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-types-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-types-order/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jespersmukkehansen](https://wordpress.org/support/users/jespersmukkehansen/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-overwrite-my-portfolio-order/#post-4929639)
 * Status: not resolved