Loops & Logic
  • Home
Toggle Navigation
Getting started
Getting started with Loops & Logic
Getting started with Tangible Blocks
Two-minute quick-start guide to Loops & Logic
Learning guides
Dynamic tags
Async
Cache
Date
Embed
Exit and Catch
Field
Format
Glider
If
Logic variables
Switch and When
Date conditionals
List
Load
Loop
Loop types
Attachment
Calendar
Menu
Post
Taxonomy
Taxonomy term
Times
Type
User
Loop features
Exists
Pagination
Variables
Map
Markdown
Math
Meta
Mobile Detect
Note
Path
Prism
Random
Raw
Redirect
Route
Sass
Set and Get
Setting
Shortcode
Slider
Taxonomy
Template
Timer
Url
User
Integrations
Block controls
Reference guides
Template editor shortcuts
Terminology definitions
How-to guides
Home  »  Learning guides  »  Dynamic tags  »  Setting

Setting

Use the Setting tag to get site settings.

Pass the name of the setting as the first attribute.

<Setting admin_email />

See this page for a reference of all site settings in WordPress core.

Field

If the setting's value is an array or associative array, use the field attribute to get a property from it.

<Setting custom_setting field=id />

We plan to extend this feature to support getting values deeper in an array/object.

 Setting  Site
© 2023 Loops & Logic