This site Assembly NewsAbout Blog AContact
Log inRegister
  • Assembly News
  • About Blog A
  • Contact

  • Register

New York General Assembly

NYGA
  • Front Page
  • About Blog A
  • Categories
  • Archives
  • Latest comments
  • « Image post
  • Another Custom Fields Example »

Child Post Example

posted on May 17, 2019 by admin in Background

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://newyorkdejure.org/index.php/a/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:

Image 1:
First numeric field:123
First string field:abc
Checkmark field:

Another way to show this, is to use b2evolution's [compare:...] short tag:

Child Post ExampleCustom Fields Example
Image 1:
First numeric field:123123
First string field:abcabc
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 €

This entry was posted by admin and is filed under Background. Tags: demo

1 comment

Comment from: Anonymous Demo User Visitor

Anonymous Demo User

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.

05/18/19 @ 02:59 am

This post has 1 feedback awaiting moderation...


Form is loading...

Comment feed for this post

This collection ©2021 by Johnny Admin • Contact • Help • Multiple blogs solution

Forums software

Cookies are required to enable core site functionality. ©2021 by This site.