Support » Plugin: Posts 2 Posts » [Plugin: Posts 2 Posts] Create custom admin box and custom field

  • Resolved Marco Schmoecker


    Hi Scribu,

    Thanks for this awesome plugin!

    I want to add some new functionality to the admin box in the “New …” tab:
    When you create a new (connected) post or CPT via the (edit post page) admin box than:
    -> Show a 2nd text field to add a new custom field for that post/CPT (not for the connection).

    The current situation/flow is that you can create a new post/CPT but you have to switch over to the new post/CPT to e.g. add a custom field, etc.

    Is there a way to do that via a filter/new template in some way, or do I need to create my own admin box to make that work? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author scribu


    The thing is that, besides modifying the metabox HTML, you also need to be able to hook into the AJAX handler to save the custom field.

    There are currently no hooks for either.

    So, basically I’d have to develop my own metabox and AJAX handler to accomplish saving a custom field with (newly created) connected post/CPT?

    Plugin Author scribu


    Yes, you’d have to make your own metabox, but you don’t necessarily need to use AJAX with it.


    Is there an example of a custom meta box around in combination with your plugin? Should I base my custom meta box on the one in your plugin, or would that create more work on my part vs. simply creating my own metabox.

    And, should I use your plugins methods to save the connection data?


    Plugin Author scribu


    Ah, thanks! RTFM I guess 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Posts 2 Posts] Create custom admin box and custom field’ is closed to new replies.