Jump to content

Child Post to a Parent Post


JabsBlog

Recommended Posts

I have a question on forms and getting the information from 1 form to another on seperate pages.

I have a project that I am working on .. My index page pulls information from a Database. One of the fields is called blog_id. This is a random unique number.

In my Index page the Parent post has a Unique ID assigned to it in the Database. I want to create a link for a Child Post and be able to display the child post under the Parent Post. I am not quite sure how to go about doing this.

Any Help would be thankful
Link to comment
Share on other sites

the child post needs a field called something like "parent_id" this will store the parent posts id.

then when you are viewing the parent post you simply pull all the child posts from the database that have the parent_id

Easy as pie ;)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.