WordPress.org

Forums

Posts 2 Posts
Maximum number of connections? (4 posts)

  1. Blackbam
    Member
    Posted 11 months ago #

    Hello is there right now a possibility to specify a maximum number of connections or even a possibility to display an error message if the number of connections is not exactly e.g. 5?

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

  2. clariner
    Member
    Posted 6 months ago #

    If you want to limit the number of connections that can be added in the admin screen you can do this with JavaScript.

    We watch the number of row in the table listing all the connects and when it hits a certain value we hide the add button.

    If this is what you want I can post an example of how to do it?

  3. webagencyrimini
    Member
    Posted 6 months ago #

    Please clariner, can you post the code?
    I'm also interested on it.

    Thanks

  4. clariner
    Member
    Posted 6 months ago #

    I have added an example to the posts-to-posts wiki.

    https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-display

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.