Skip to content

Commit

Permalink
Update camptix-tweaks.php
Browse files Browse the repository at this point in the history
Remove the default 5 posts being returned by `get_posts`
  • Loading branch information
pkevan authored Dec 19, 2024
1 parent 6a4da3f commit 693decf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
?>
<select name="tix_show_ticket_type">
<option value=""><?php esc_html_e( 'All Tickets', 'wordcamporg' ); ?></option>
Expand Down

0 comments on commit 693decf

Please sign in to comment.