• I manage a large site with thousands of articles and the list of p2p connections between post types are getting to be quite long.

    I’m wondering if anyone has any ideas on the best way to limit the amount of connections shown on the edit screen so the user interface looks more manageable.

    Thank you for your time and any suggestions you might have.

    Best,
    Brian

    https://www.ads-software.com/plugins/posts-to-posts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same question here. If there are, say, 100 connections, what code can I use when I query the posts to limit the number shown to 10? “‘posts_per_page’ => ’10′” does not see to do anything as it would with a regular wp_query.

    prestigestudios

    (@prestigestudios)

    Try adding

    'nopaging' => false,

    with your post_per_page in your args

    Thanks, prestigestudios, that worked for me!

    worked for me 2 – Thanks

    Thread Starter Brian Cruikshank

    (@brianbws)

    I still don’t see how to do this. I’m talking about the post edit screen in the admin backend, not the frontend.

    Best,
    Brian

    Pretty sure it’s not possible to do with the current version, but thats a good feature suggestion.

    You might be able to do it with some custom admin CSS. Change that meta box’s CSS to max-height: 500px or whatever and make it overflow-y: scroll so you can scroll through the list.

    Otherwise if you’ve got that many connections between things you might want to reconsider the architecture of your website.

    Thread Starter Brian Cruikshank

    (@brianbws)

    Yeah, thought of doing something like that although I was having trouble when I tried.

    I do need a non-css based solution though because the number of connections I have is really slowing down the loading of some admin edit post screens with hundreds of connections.

    Can’t change the architecture at this point.

    Best,
    Brian

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Limit number of connections displayed’ is closed to new replies.