OnlineShopForPets.comBlog ABlog BPhotosForumsManualAbout this siteWidget PageContactLog inRegister
  • Blog A
  • Blog B
  • Photos
  • Forums
  • Manual
  • About this site
  • Widget Page
  • Contact

  • Register

Manual Title

This is the collection's tagline.
  • Front Page
  • Latest pages
  • Latest comments
  • About this manual
  1. Manual Title
  2. Introduction
  3. Child Post Example

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: Another Custom Fields Example (https://onlineshopforpets.com/index.php/manual/introduction/another-custom-fields-example-2).

This also allows us to access the custom fields of the parent post:

Image 1
First numeric field123.45
First string fieldabcdef
Second numeric field456
Multiline HTML fieldThis is an HTML field.
Multiline plain text fieldThis is a sample text field.
It can have multiple lines.
This is an extra line.
URL fieldhttp://b2evolution.net/
USD Price$ 17.50
EUR Price14.95 €
Checkmark fieldn/a
Numeric Average289.725

It is also possible to selectively display only a couple of these fields:

First numeric field123.45
First string fieldabcdef
Second numeric field456

Finally, we can also display just the value of a specific field, like this: abcdef.

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 field123
First string fieldabc
Checkmark field

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

Child Post ExampleAnother Custom Fields Example
Image 1
First numeric field123123.45
First string fieldabcabcdef
Checkmark fieldn/a
Second numeric field456
Multiline HTML fieldThis is an HTML field.
Multiline plain text fieldThis is a sample text field.
It can have multiple lines.
This is an extra line.
URL fieldhttp://b2evolution.net/
USD Price$ 17.50
EUR Price14.95 €
Numeric Average289.725
Created by dave • Last edit by admin on 03/14/21 05:16 am

1 comment

Comment from: admin Member

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.

02/12/21 @ 03:05 pm

This post has 1 feedback awaiting moderation...


Form is loading...

Tags: custom fieldsdemo

Attachments:

  • monument-valley-road.jpg (233 KB)
Image 1:
First numeric field:
123
First string field:
abc
Checkmark field:

Search this manual:

Content Hierarchy

  • Introduction
    • First Post
    • Second post
    • Custom Fields Example
    • Another Custom Fields Example
    • Child Post Example
    • Featured post
    • About widgets...
    • About skins...
    • Apache optimization...
  • Getting Started
  • User Guide
  • Reference

Recent Posts

  • Extended post
  • Post with Images
  • Mongolian Beef
  • Stuffed Peppers
  • Custom Fields Example
  • Another Custom Fields Example
  • Child Post Example
  • Extended post with no teaser
  • This is a multipage post
  • Featured post

Recent Comments

  • mary on Extended post
  • paul on Post with Images
  • jay on Stuffed Peppers
  • larry on Mongolian Beef
  • mary on Another Custom Fields Example
  • mary on Custom Fields Example
  • admin on Child Post Example
  • jay on Extended post with no teaser
  • paul on This is a multipage post
  • dave on Featured post
  • admin on Markdown examples
  • kate on About widgets...
  • dave on Wiki Tables
  • larry on About skins...
  • jay on Apache optimization...
  • kate on Second post
  • kate on First Post
  • kate on Chapter Intro

Recent photos

Extended post
Extended post
Post with Images
Post with Images

Sidebar 2

This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".

Photo gallery software

This collection ©2025 by David Miller • Contact • Help • RWD CMS

Cookies are required to enable core site functionality.