From 693decf26bc73ba26e2960cf1c83324eafa0e476 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:11:50 +0000 Subject: [PATCH] Update camptix-tweaks.php Remove the default 5 posts being returned by `get_posts` --- .../wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php | 3 ++- 1 file changed, 2 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..f19eff06b 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,8 @@ 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 ) ); ?>