Skip to content

Commit

Permalink
Update camptix-tweaks.php (#1449)
Browse files Browse the repository at this point in the history
* Update camptix-tweaks.php

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

0 comments on commit ec6fefa

Please sign in to comment.