• Hi guys,
    I really like the plugin. It’s simple and makes one less custom post type i have to create on my own. However I ran into a problem … it only shows 10 versions / posts with the shortcode. Here is how I fixed it:

    I added ‘posts_per_page’ => -1 to your wp_query string (line 92 or 93 of changelog.php).

    This has worked to display all versions with the shortcode. Any way you can update the plugin to include this?

    Thanks,
    Jonathan

    https://www.ads-software.com/plugins/changelog/

Viewing 4 replies - 1 through 4 (of 4 total)
  • *bump*

    @thompjo: could you tell me the exact code please? Thanks, Mika

    Thread Starter thompjo

    (@thompjo)

    In file changelog.php, I edited function show_changelog (line 86) by adding the extra parameter ‘posts_per_page’ => -1 as below:

    function show_changelog( $args = '' ) {
        ob_start();
        $args = array(
            'post_type'	 =>	array('changelog'),
            'post_status' =>	'publish',
            'project'	=> $args['project'],
            'order' => 'DESC',
            'posts_per_page' => -1
        );

    Hope this helps!

    Yes, thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only shows 10 posts … and one workaround to show more than 10’ is closed to new replies.