Dynamic subpage of cpt pages

Support MB Custom Post Type Dynamic subpage of cpt pages

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44559
    Roel PetraRoel Petra
    Participant

    Hi Metabox,
    I'm working on a site for a client and using Bricks + Metabox. I've created a custom post type that lists all their courses. However, I want to add a subpage to each course page, example:
    page-url/sign-up
    And this for every page, however I want to create just 1 template for this subpage that then dynamically get the data from the course it's a subpage from.
    Any idea on how to achieve this?

    #44572
    PeterPeter
    Moderator

    Hello,

    I'm not sure if the Bricks supports creating a template for subpage only. If you create the template by coding, you can use the property post_parent of the $post object to check if the page is a subpage (child-page). Refer to this topic https://wordpress.stackexchange.com/questions/169306/check-if-is-on-child-page-of-a-particular-page

    #44573
    Roel PetraRoel Petra
    Participant

    Hi Peter,

    Yes it does, I can set the conditions to "Individual" and then enable the "Apply to child pages".
    However, then my question is, how would I be able to create just 1 subpage, instead of having to create a subpage for each course they make.

    Kind regards,
    Roel

    #44574
    Roel PetraRoel Petra
    Participant

    Hi Peter,

    Yes it does, I can set the conditions to "Individual" and then enable the "Apply to child pages".
    However, then my question is, how would I be able to create just 1 subpage, instead of having to create a subpage for each course they make.

    Hopefully there's a solution for this!

    Kind regards,
    Roel

    #44584
    PeterPeter
    Moderator

    Hello,

    I think your question needs a response from Brick builder support which you use to create the template. Meta Box doesn't support this feature.

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