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  »  Loop  »  Loop types  »  Times

Times

The loop type times simply repeats the content a given number of times.

<Loop times=5>
  A
</Loop>

The above will show: AAAAA.

Use the loop variable type to get the current loop count.

<Loop times=5>
  <Get loop=count />
</Loop>

The above will show: 12345.

 Loop type: Times
© 2023 Loops & Logic