Connecting multiple CPTs for a single post type template

Support General Connecting multiple CPTs for a single post type template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43896
    Stefan IonescuStefan Ionescu
    Participant

    Hello,

    I am trying to create a single post type template in elementor pro (or bricks as an alternative) for a custom post type that is connected to other post types via it's custom fields. As a simple example, when creating a new post for CPT1 i have a custom field that selects which of the CPT2 posts are included with that CPT1 post. Then on the template page I want to load the values from some custom fields of the specific CPT2 posts.

    Firstly, I would like to know if this is at all possible/supported by metabox either via it's view's builder or through Elementor Pro or Bricks.
    Secondly, if the answer is yes, can you please point me in the right direction?

    I have been struggling to load those CPT2 custom fields values into the CPT1 single post template with no success.

    I have tried my best to do a visual representation of what is in my head in the PDF linked here: https://yellow-jeanna-72.tiiny.site .

    Thanks in advance for your help.

    #43909
    PeterPeter
    Moderator

    Hello Stefan,

    I think you are trying to create a travel theme which will need a lot of custom code to do. With Elementor Pro or Bricks, it isn't possible with only drag and drop. With View, which is a code editor, not a builder, it isn't enough to use only View to do that, you still need to use PHP code.

    You can refer to this series https://metabox.io/build-hotel-booking-web-use-meta-box-p1/
    if you are not able to complete the task, please contact us here https://metabox.io/contact/
    we offer a customization service with an extra fee.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.