• Hello scribu. I wanted to ad some customized columns for a project in the default P2P metabox. Am I correct to assume what I would need to do is:

    1. Create a new class extending P2P_Field for said column
    2. Create a mustache template
    3. Add the column in the column array in the init_columns function in P2P_Box or extend P2P_Box to do so

    Is there anything I’m missing or are there any tips you could give to do so?

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

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

    (@scribu)

    Step 2 is not strictly necessary. You’re free to generate the HTML however you wish.

    Note that all the classes involving the metabox are “internal”, which means that they could change at any time.

    What kind of column do you need to create?

    Thread Starter Manny Fleurmond

    (@funkatronic)

    I wanted to add some columns with post metadata and\or taxonomies as well as having a custom sort for the posts in general.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] Customizing the P2P Metabox using Custom Mustache’ is closed to new replies.