As such, I’ve used posts_per_page="10"
and order="ASC"
but that lists the 10 oldest posts. And, of course, I can flip the ASC to DESC to get the newest posts, but then they are listed in reverse chronological order.
I’m happy to use a filter in my core functionality plugin; just need to know what to do.
Thanks as always; love the plugin!
Here’s the full shortcode I’m currently using, for reference
[display-posts title="In this Series" taxonomy="post_tag" tax_term="current"
tax_operator="IN" image_size="thumbnail" include_excerpt="false" wrapper="div"
posts_per_page="10" columns="1" include_date="false" include_event_date="true"
orderby="meta_value_num" meta_key="event_date" date_format="M j, Y" order="DESC"]
]]>I am using ajax load more loop with the following shortcode:
[cpt_ajax_load_more id=”2″ post_type=”bgm” template=”default” posts_per_page=”2″]
but the loop is loading all the posts in the post type at the beginning with no load more button.
please help me with that.
Regards,
]]>This is the shortcode I am using:
[display-posts category=”category-name” posts_per_page=”20″ order=”ASC”]
This problem occurs regardless of the order of parameters in the shortcode. Is there a way to do this with Display Posts?
Thanks.
]]>[display-posts category=”allgemein” include_excerpt=”true“]
[display-posts posts_per_page=”99″]
WordPress 5.3.2
Theme: WP-Exchange | joomlaplates
Thank you for enlightening answers.
]]><?php
$the_query = new WP_Query(array(
'posts_per_page' => 4,
'offset' => 1
));
if (have_posts()) : while ( have_posts() ) : the_post();
endwhile;endif; wp_reset_postdata();?>
]]>https://theeventscalendar.com/extensions/advanced-ical-export/
https://theeventscalendar.com/support/forums/topic/ical-feed-with-all-events/
This gave me the following querystrings for my list…
?tribe_paged=0&tribe_event_display=list&ical=1&tribe_display=list
?ical=1&tribe_display=custom&start_date=2018&end_date=2020
After modifying the extension script a bit to fit the query that I need for my website, I have it mostly working. However, no matter what I do, the results are always limited. I have changed the posts_per_page to -1 in my hook and it still only shows 10 results…
$query->set( ‘posts_per_page’, -1 );
Is there another filter/action that is maybe setting the limit outside of my tribe_events_pre_get_posts filter that I am adding?
Thanks,
Wil
The plugin appears to have a hard-coded limit when it comes to displaying results, which is set to 100.
Inside:
simple-staff-list > public > partials > simple-staff-list-shortcode-display.php
Would be nice to have a shortcode attribute like “limit” to be able to go beyond the 100 limit attached to $args[‘posts_per_page’] using something like $atts[‘limit’].
e.g.
[simple-staff-list orderby=”title” group=”staff” limit=”400″]
Would rather not do the ugly band-aid fix of altering the plugin directly.
]]>I managed to control the number of posts to display on an archive post page using the code below:
$args = array( ‘post_type’ => ‘post’,
‘post_status’=>’publish’,
‘posts_per_page’ => 10,
‘category_name’ => ‘NEWS’,
‘paged’ => $paged,
);
However, upon clicking the Next Page link in the pagination, the browser returns ERROR 404. The code for the pagination is as follows:
echo paginate_links( array( ‘format’ => ‘page/%#%’, ‘current’ => $paged, ‘total’ => $the_query->max_num_pages, ‘mid_size’ => 2, ‘prev_text’ => __(‘« Prev Page’), ‘next_text’ => __(‘Next Page »’) ) );
ERROR 404 mentioned above is resolved only and if only the max number of posts to display is set to below the value of ‘posts_per_page’ on the WP admin screen, which I found inconvenient because I want to show different numbers of posts on paginated pages across different archive post pages.
Is there a way to override the WP’s max number of posts to display using paginate_links()?
]]>