First Steps

Build a small end-to-end example: a custom post type, a field group with location rules, and reading values in a theme.

Goal

In about five minutes you will have a Books post type, a field group with a few fields on that type, and the pattern for reading those fields in PHP.

1. Create a Custom Post Type

Open Post Types

Go to SiteNivo → Post Types and click Add New.

Fill General

Set Singular Label Book, Plural Books, Key book (lowercase, underscores, max 20 chars). Optionally set a menu icon.

Choose Supports

Keep Title and Editor; enable Featured Image if you want covers.

Save

Publish/save the post type. You should see a Books menu in wp-admin.

Details: Custom Post Types.

2. Create a Field Group

Open Field Groups

Go to SiteNivo → Field Groups → Add.

Add fields

Example: Text field subtitle, Image field cover, Textarea blurb.

Set location

Rule: Post Type == book. Rules inside a group are AND; extra groups are OR.

Save Active

Ensure Status is Active and Style/Position fit your workflow (Default metabox is fine).

Details: Field Groups · Field Types.

3. Enter content

Add a Book

Open Books → Add New, fill title + SiteNivo fields, publish.

Confirm the meta box

Fields appear according to location rules and label placement settings.

4. Read values in your theme

<?php
// Inside the Book single template:
$subtitle = sn_get_field( 'subtitle' );
$cover    = sn_get_field( 'cover' ); // often an array with url/id
sn_the_field( 'blurb' );             // echoes safely for most scalar/HTML fields

Full API: Template Functions.

Optional next steps

Export portable PHP with Code Generator, or harden the site via Security.

Related docs

Custom Post Types · Field Groups · Template Functions