Support » Plugin: WP VeriteCo Timeline » Number of timeline posts

  • Resolved rmorson


    I am using your wordpress plugin WP VeriteCo Timeline, and a theme. I have set my posts to show above the number of actual timeline posts I have (40 timeline items).

    However, I still ONLY GET the ten most recent posts showing in the timeline.

    I am using [WPVT] as the shortcode for the timeline placement on the page.

    Am I doing something wrong, or is there somewhere in the plugin where I can actually set the number of posts for the timeline to go beyond 10. I have edited the settings for reading and post display settings in the theme. I also tested the plugin using the default wordpress theme (Twenty Thirteen), using 100 post as my reading settings and still I get only 10 posts in the timeline.

    I really need help to figure out what I’m doing wrong. Is it the short code? Please help urgently.


Viewing 15 replies - 1 through 15 (of 21 total)
  • Not sure if you still need help with this but… this magic number is actually the number of posts Worpress is set to show per page. Doesn’t make sense to me but at least it’s easy to fix.

    Go to Settings > Reading and set “Blog pages show at most” to how many timeline entries you want to show. Set this option to 1000 or whatever if you want to show all entries.

    Plugin Author Josh Eaton


    FYI, I have adopted this plugin and will be pushing out some fixes as soon as I am able. Adding an option to set the number of timeline posts is on the list, probably for version 1.2 as soon as I take care of the critical fixes.

    I’ve set up a GitHub repo for the plugin:

    Please add any additional issues there.

    I have the same problem, exactly 10 (last) entries showing up, and 10 in the json file. But I have 22 entries. Changing the number of posts in the WP settings doesn’t help. Can you perhaps provide a fix or a change in the code somewhere? I would really regret changing to another timeline…

    I fixed it myself. Look up in wp-veriteco-timeline.php, around line 354:

    $last = ($loop->post_count <= get_option('posts_per_page')) ? $loop->post_count : get_option('posts_per_page');

    Change this to:

    $post_count = -1; // minus one = show all, or enter your max number
    $last = $loop->post_count;

    Clear cache and reload. No guarantees, but it worked for me.

    Plugin Author Josh Eaton


    Version 1.2 should have a fix for this, I’m currently working on it.

    Below solution doesn’t work for me.

    $post_count = -1; // minus one = show all, or enter your max number
    $last = $loop->post_count;


    It would be great it if you can tell us when the next version will be available with this fix.

    ravimevcha, after that you could try emtying your cache and reload. I had to empty and reload several times before it worked.

    Annekee, I tried multiple time, even on different machine where I was opening site for first time, still it shows only last 10 entries.

    Is there any other way to solve it?

    Plugin Author Josh Eaton


    This is the workaround I’ve used before:

    line 352:


    $args = array( 'post_type' => 'timeline' );


    $args = array( 'post_type' => 'timeline', 'nopaging' => true );

    to show all posts. To limit to a certain number, say 25 posts, change it to this:

    $args = array( 'post_type' => 'timeline', 'posts_per_page' => 25 );

    I will update this to allow you the option to change it in the admin, I just have so much client work right now it’s hard to find the time.

    Thanks a lot Josh. It’s working now. I can see all the timeline instead of just 10.

    many thanks..

    You know I’ve tried just about everything, but now I just get “parsing data and it keeps spinning. Nothing is actually showing anymore, even after I put it back to the original.

    What could be wrong?

    Plugin Author Josh Eaton



    If you have any HTML (links, etc.) in your timeline posts, it will break.

    As a quick fix you could try changing line 360:

    $string .= stripslashes($entry->toJSON());


    $string .= $entry->toJSON();

    and then resave one of the timeline posts so that it rebuilds the JSON file.

    I even created a new timeline post, and well, here I am still seeing a spinning “parsing data” instead of my timeline.

    I don’t believe I have html in my timeline posts though. I kept them simple.

    Ugh. So disappointing.

    Plugin Author Josh Eaton


    @rmorson, do you have a link to the site I can see? is the page where I have the timeline.

    (If necessary I am happy to email you login info or ftp info privately to get this sorted out)


Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Number of timeline posts’ is closed to new replies.