Child Post Example
This post has a special post type called "Child Post". This allowed to specify a parent post ID. Consequently, this child post is linked to: Custom Fields Example (http://testblog.4forests.net/custom-fields-example).
This also allows us to access the custom fields of the parent post:
Image 1: | |
---|---|
First numeric field: | 123 |
First string field: | abc |
Second numeric field: | 456 |
Multiline HTML field: | This is an HTML field. |
Multiline plain text field: | This is a sample text field. It can have multiple lines. |
URL field: | http://b2evolution.net/ |
USD Price: | $ 29.99 |
EUR Price: | 24.79 € |
Checkmark field: |
It is also possible to selectively display only a couple of these fields:
First numeric field: | 123 |
---|---|
First string field: | abc |
Second numeric field: | 456 |
Finally, we can also display just the value of a specific field, like this: abc.
We can also reference fields of any other post like this: abcdef or like this: abcdef.
It is also possible to create links using a custom field URL from the parent post: Click me!
Replicated fields
By using the same field names, it is also possible to automatically replicate some fields from parent to child (recursively).
This child post has the following fields which automatically replicate from its parent:
Another way to show this, is to use b2evolution's [compare:...]
short tag:
Child Post Example | Custom Fields Example | |
---|---|---|
Image 1: | ||
First numeric field: | 123 | 123 |
First string field: | abc | abc |
Checkmark field: | ||
Second numeric field: | 456 | |
Multiline HTML field: | This is an HTML field. | |
Multiline plain text field: | This is a sample text field. It can have multiple lines. | |
URL field: | http://b2evolution.net/ | |
USD Price: | $ 29.99 | |
EUR Price: | 24.79 € |
1 comment
Comment from: dave Member
This post has 1 feedback awaiting moderation...
Hi!
This is a sample comment that has been approved by default!
Admins and moderators can very quickly approve or reject comments from the collection dashboard.