Skip to content

Commit

Permalink
Bug Fix shortcode.
Browse files Browse the repository at this point in the history
* BUG FIX: Fixed an issue where shortcodes attribute "limit" wasn't working.
  • Loading branch information
andrewlimaza committed Sep 26, 2022
1 parent 19d6e9a commit 8106821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function pmpro_courses_get_courses( $posts_per_page = -1, $user_id = false ) {
// Set up args for query.
$args = array(
'post_type' => 'pmpro_course',
'posts_per_page' => -1,
'posts_per_page' => $posts_per_page,
'orderby' => 'menu_order',
'order' => 'ASC'
);
Expand Down

0 comments on commit 8106821

Please sign in to comment.