• I’m looking at using this as a queue system for a Home Page query.

    If the queue is empty, however, all posts are returned.
    Ln 257 of acs.php is:
    $post_ids = $this->get_post_ids($group_name);
    but would it make sense to wrap that with an if conditional?

    if (get_post_ids($group_name))
    {
        $post_ids = $this->get_post_ids($group_name);
    }

    https://wordpress.org/plugins/advanced-custom-sort/

Viewing 1 replies (of 1 total)
  • Thread Starter oiler

    (@oiler)

    Well, I didn’t test my suggested logic before posting… but the point stands… there should be a better option for fallback if the queue is left empty. Maybe have ‘posts_per_page’ use the default instead of -1 ?

Viewing 1 replies (of 1 total)
  • The topic ‘Empty ACS group returns all posts’ is closed to new replies.