WordPress.org

Ready to get started?Download WordPress

Forums

posts_join & posts_where : limit them to the posts selection only (2 posts)

  1. grosbouff
    Member
    Posted 3 years ago #

    I'm "hacking" a query using the posts_join & posts_where filters. Problem : this applies to each query on my wordpress, not only the posts selection.
    For example I use a custom query to count my (custom) posts; and it is filtered by thoses filters.

    Currently I find a solution adding those filter on a hook (before my posts query) and removing them when the query is done. But is there a "cleaner" solution ?

  2. grosbouff
    Member
    Posted 3 years ago #

    Any idea ?

Topic Closed

This topic has been closed to new replies.

About this Topic