WordPress.org

Ready to get started?Download WordPress

Forums

Q2W3 Post Order
[resolved] Private posts are not listed (4 posts)

  1. Felipe de Castro
    Member
    Posted 1 year ago #

    Hi, i saw that when i choose to order posts in a custom taxonomy it doesn't show me the private posts to order.

    For example, in this site: novadfl.com.br/novo-site i have the post-type "Produtos" with a custom taxonomy "categoria de produtos" and there are some private posts in this post-type. When i choose to order the term "cirurgia" at "categoria de produtos" custom taxonomy it only lists the posts that are not private so the private posts comes after those and can't be ordered.

    Is there a way to fix that?

    Thanks!

    http://wordpress.org/extend/plugins/q2w3-post-order/

  2. Felipe de Castro
    Member
    Posted 1 year ago #

    So i've found a solution.

    You only have to replace the code

    AND posts.post_status = 'publish'

    for

    AND (posts.post_status = 'publish' OR post_status = 'private')

    It happens at lines 1085, 1092, 1176 and 1181.

  3. Felipe de Castro
    Member
    Posted 1 year ago #

    It's resolved!

  4. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you!
    I added your solution in ver. 1.2.6

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.