To Show Particular Field value of the row
{{block class="Bricks\AdvanceFields\Block\Advancefields\Field"
name="advancefields_listing" template="Bricks_AdvanceFields::advancefields/
field.phtml" field_id="2" variable="field_value"}}
To Show list of all the fields available for that particular page
{{block class="Bricks\AdvanceFields\Block\Advancefields\Listing"
name="advancefields_listing" template="Bricks_AdvanceFields::advancefields/
listing.phtml"}}
To Show title and value of particular row in one call
{{block class="Bricks\AdvanceFields\Block\Advancefields\Row"
name="advancefields_row" template="Bricks_AdvanceFields::advancefields/row.phtml"
field_id="2"}}
3. Direct Adding code in PHTML File
In case you can want to use the block code directly in the phtml template then you can
use below code to show the custom field:
<?php echo $this->getLayout()-
>createBlock(“Bricks\AdvanceFields\Block\Advancefields\Field")-
>getAdvanceFieldsValue(1,'field_title'); ?>
Above code will show Field title of 1 record. For Example I have added the custom block
code in the newsletter subscribe.phtml and title of the first record showing as below.