WordPress.org

Forums

Posts 2 Posts
Limit number of connections displayed (8 posts)

  1. Brian Cruikshank
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/plugins/posts-to-posts/

  2. aleklisefski
    Member
    Posted 1 year ago #

    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.

  3. prestigestudios
    Member
    Posted 1 year ago #

    Try adding

    'nopaging' => false,

    with your post_per_page in your args

  4. S. Padilha
    Member
    Posted 1 year ago #

    Thanks, prestigestudios, that worked for me!

  5. stunomatic
    Member
    Posted 1 year ago #

    worked for me 2 - Thanks

  6. Brian Cruikshank
    Member
    Posted 1 year ago #

    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

  7. Austen Blokker
    Member
    Posted 1 year ago #

    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.

  8. Brian Cruikshank
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic