• I need some info on post_where, the info on the codex just isnt enough, can someone provide with some info on how to use it. or should i use the_posts hook? i dunno what im supposd to return to it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    This sorta depends on what you’re trying to do.

    The posts_where filter hook lets you modify the WHERE statement in the main post pulling query to the mySQL database. You’d use it if you wanted to limit (or expand) the posts that are pulled from the database in some unusual way.

    Creating a filter for the_posts will give you the results of the query (the posts array), which you can then modify as you see fit.

    Thread Starter aloncarmel

    (@aloncarmel)

    im tryin to filter out certain posts depending if the user is logged or not and another var setting.

    Can you please post an example using the_posts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post_where hook question’ is closed to new replies.