File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -898,14 +898,14 @@ public function multiloquent_category_list_as_hierarchy($cat = '0')
898
898
public function multiloquent_paralax_slider ()
899
899
{
900
900
global $ wpdb ;
901
- $ total_posts = '5 ' ;
901
+ $ total_posts = '10 ' ;
902
902
903
903
if (function_exists ('get_tptn_pop_posts ' )) {
904
904
$ args = array (
905
905
'daily ' => false ,
906
906
'strict_limit ' => true ,
907
907
'posts_only ' => false ,
908
- 'limit ' => 5 ,
908
+ 'limit ' => $ total_posts ,
909
909
'posts_only ' => true ,
910
910
);
911
911
// todo - this needs to be an array of objects..
@@ -921,6 +921,15 @@ public function multiloquent_paralax_slider()
921
921
} elseif (defined ('WPSEO_VERSION ' )) {
922
922
$ posts_to_get = $ this ->multiloqient_get_post_id_by_meta_key_and_value ('_yoast_wpseo_is_cornerstone ' , '1 ' );
923
923
$ args = array (
924
+ 'numberposts ' => $ total_posts ,
925
+ 'offset ' => 0 ,
926
+ 'category ' => '' ,
927
+ 'orderby ' => 'post_date ' ,
928
+ 'order ' => 'DESC ' ,
929
+ 'include ' => '' ,
930
+ 'exclude ' => '' ,
931
+ 'post_type ' => 'post ' ,
932
+ 'post_status ' => 'publish ' ,
924
933
'post__in ' => $ posts_to_get ,
925
934
);
926
935
$ recent_posts = get_posts ($ args );
@@ -938,7 +947,7 @@ public function multiloquent_paralax_slider()
938
947
);
939
948
$ recent_posts = get_posts ($ args );
940
949
}
941
- $ count = 1 ;
950
+ $ count = 1 ;
942
951
$ output = '<div class="container-fluid mb"> ' ;
943
952
foreach ($ recent_posts as $ val ) {
944
953
$ slider_image = wp_get_attachment_image_src (get_post_thumbnail_id ($ val ->ID ), 'single-post-thumbnail ' );
You can’t perform that action at this time.
0 commit comments