From ec6fefab26a37bcb3bfc4e91bf14172aef06c5a6 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:26:24 +0000 Subject: [PATCH] Update camptix-tweaks.php (#1449) * Update camptix-tweaks.php Remove the default 5 posts being returned by `get_posts` --- .../wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php b/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php index d03f40691..3e59f5df5 100644 --- a/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php +++ b/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php @@ -1095,7 +1095,11 @@ function add_show_ticket_type_filter() { $filter = isset( $_GET['tix_show_ticket_type'] ) ? $_GET['tix_show_ticket_type'] : ''; - $all_tickets = get_posts( array( 'post_type' => 'tix_ticket' ) ); + // Set posts_per_page to -1 so we show them all. + $all_tickets = get_posts( array( + 'post_type' => 'tix_ticket', + 'posts_per_page' => -1, + ) ); ?>