• mabho

    (@mabho)


    This issue refers to version 1.9 of the plugin. I haven’t done tests with any other setups.

    In WP, I had changed my ‘Number of posts per page’ (post type options on top pf the page) setting to 50 because the default 20 items weren’t enough for my usecase. I did this because I couldn’t sort further than 20 items using ‘Post types order’. Click and drag functionality of this module doesn’t empower me (at least, it seems, as far as I could test) to shift an item from page 1 to page 2 and so forth.

    Well, changing my WP setting to 50 seemed to solve the issue (I had 25 items to sort in my usecase) as I would be able to freely pull and reorder items. No, the problem, as I found after pulling some hair out of my head, is that I could resort items within the 20 posts per page limit. If I was to pull item from position 25 to position 16, my change would be completely ignored.

    After downloading and playing around with the source code to try to sort out the problem, I could solve the issue by changing $objects_per_page to ’50’, instead of the default ’20’ on file ‘cpto-class.php’, line 175. Now the plugin can atually ‘see’ 50 items per page and I can do whatever resort I need. Of course I would have problems if my number of items was to climb to 60.

    This was of course a quick and dirty fix, of course, as the problem doesn’t get solved. My best guess is this line 173 should be somehow fixed:

    $objects_per_page = get_user_meta($userdata->ID ,'edit_post_per_page', TRUE);

    It should pull the number of items per page I have set for the post type being edited.

    Please, let me know if this is the appropriate channel for sharing this sort of fix request. I will be eager to help in case you need.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mabho

    (@mabho)

    Note: I should have named this support request as ‘Issue with number of posts *per page*’, or Issue with number of posts *per page* on post type’, but I can’t change it now that I have already published.

    Any new developments on this @mabho ?

    Thread Starter mabho

    (@mabho)

    Hello, @dgfrench, no, not yet, I haven’t actually looked into this since I opened this post here. I am sort of busy these days, but will try to resume looking into this on December. I will post back here in case I have news on this issue. Did you happen to see the same problem described here?

    Hi @mabho, I can totally relate and have put this on the back burner but it has came up again so I guess my next adventure will be learning plugin development so that I can be of some help to myself & others. My issue with this particular plugin is that it works fine on the dev but on production it just doesn’t work. It allows me to sort & save but does not hold the results when viewing from the front end. The only thing I see different is dev has minimal posts vs production has 200+. And for the record they are tribe_events custom post type so if you have any tidbits to share I would be grateful. ??

    TIA,
    Donna

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with number of posts’ is closed to new replies.