HomePoemsPicturesReflections
  • Blog A
  • Blog B
  • Photos
  • Forums
  • Manual
  • 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 (http://www.lifeofmoe.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 markanthonyatx@gmail • Last edit by markanthonyatx@gmail on 08/06/22 03:03 pm

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.

07/08/22 @ 03:17 am

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

  • Anonymous Demo User on Extended post
  • Anonymous Demo User on Mongolian Beef
  • Anonymous Demo User on Post with Images
  • Anonymous Demo User on Stuffed Peppers
  • Anonymous Demo User on Another Custom Fields Example
  • Anonymous Demo User on Custom Fields Example
  • Anonymous Demo User on Child Post Example
  • Anonymous Demo User on Extended post with no teaser
  • Anonymous Demo User on Featured post
  • Anonymous Demo User on This is a multipage post
  • Anonymous Demo User on Markdown examples
  • Anonymous Demo User on Wiki Tables
  • Anonymous Demo User on About widgets...
  • Anonymous Demo User on About skins...
  • Anonymous Demo User on Apache optimization...
  • Anonymous Demo User on Second post
  • Anonymous Demo User on First Post
  • Anonymous Demo User 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".

b2

This collection ©2023 by Johnny Admin • Contact • Help • Forums software

Cookies are required to enable core site functionality.