Back to contents

Related Items Editing Overview

 

This tutorial explains how to manage WordPress relations between CPTs using JetEngine. It focuses on how to edit relations of a multi-related data site with related CPTs.

This tutorial uses such a case of the tour agency as a sample of multi-related data. The data scheme implements the one-to-many relation 一 the tour agency proposes many tours across one country. 

JetEngine allows to control the related items both from the parent and child pages. Here we consider the editing of child posts from the parent page.

relational site

Tutorial requirements:

Controls to Edit Relations

Controls aim to make editing of relations convenient using the WordPress dashboard and to specify user roles to get or not access to editing. You need to enter the Relation tab of JetEngine and open current relation and check the following options:

  • to provide the parent-child control by enabling the switchers: Related controls for parent object and Allow to create new children from parent;
  • to provide the child-parent control by enabling the switchers: Register controls for child object and Allow to create new parents from children.
  • alt text: parents-child and child-parents control options

    Parent Post Controls

    Enable the Register controls for parent object and Allow to create new children from parent toggles in the relation editor.

    Read more about How to Create Relationships Between Posts in this tutorial.

    Open a post from the Country CPT to add a new related item. Then scroll down the post editing area to the Children Tour section and press the “Connect Tour” button to add a new post from the drop-down list.

    adding connected custom posts

    The new child post will be added to the parent post. The connected items are displayed in the Children Tour section.

    added connected custom posts

    If the relation includes at least one meta field, you will see the corresponding meta field settings after clicking the button.

    Fill in the field or leave it empty and push the “Save Meta Data” button.

    Columns for Editing

    Title

    This column displays the name of the related posts.

    Title structure will change depending on the related object type. The standard title is used for posts and terms, the login and email are displayed when users are chosen, and if the custom relation type is selected, your input will be used as a title.

    title column

    Meta Data

    This column appears only if some meta fields are added to the related post object.

    meta data column

    A new pop-up with the meta fields editor appears when the “Edit Meta” button is pushed.

    Complete the needed fields and press the “Save Meta Data” button.

    relation meta data editing

    Actions

    This column includes several buttons to edit, view, and disconnect the posts. 

    actions with child posts

    The “View” button allows viewing the chosen item on the front end in the new tab.

    The “View” button allows viewing the chosen item on the front end in the new tab.

    The “Disconnect” button removes the item from the list of related posts.

    Children Post Controls

    Enable the Register controls for child object and Allow to create new parents from children toggles in the relation editor.

    The same table is available in the child object posts. There, you can connect and add new parent items, edit, view, and delete items, too.

    Let’s consider the “Edit” button because the meaning of the “View” and “Disconnect” buttons are apparent and do not have special features. 

    adding new parent item

    This is it. Now you know how to use the main functionality of the JetEngine related items editing on your WordPress website.