Skip to main content

48 docs tagged with "Dynamic Tags"

View All Tags

Async

The Async tag is used to improve page load time. It creates an empty HTML element, and after the page has loaded, a little script makes an asynchronous request to the server to render the template. This approach is also known as "lazy loading".

Attachment

For loop type attachment, here are the query parameters and fields.

Cache

The Cache tag is used to improve page load time. It caches the rendered template using WPObjectCache, which stores it in the database by giving it a unique name and expiration time. This supports persistent cache plugins, such as Memcached, Redis, W3 Total Cache, and LiteSpeed.

Calendar

These loop types can be used to build various calendar views.

Date

The Date tag displays a date. When used as a closed tag like ``, it shows today's date by default.

Dynamic Tags

Learn the syntax and accepted attributes for each dynamic tag in L&L

Embed

The Embed tag embeds HTML for a provided URL using oEmbed. oEmbed is an open format designed to allow embedding content from a website into another page.

Exists

Use the If tag with loop exists to check if a loop has any items.

Exit and Catch

The Exit tag exits from the current template post or file, ignoring the rest of the content.

Field

The Field tag is used to display the value of a field. The name of the field is passed as the first attribute, or by the attribute name. The following two tags will both result in the same output.

Format

The Format tag takes given content and applies various types of formatting to it.

Glider

The Glider tag provides a full-screen gallery slider. Note that this tag is a module, which means that it loads an additional library when used.

If

The If tag evaluates whether a condition is true or false. When the condition is true, its inner content is displayed.

JSON-LD

Use the JSON-LD tag to create structured data that can be added to the head of a web page and used by search engines and other tools to better understand the content of your page.

List

Use the List tag to create a list of items.

Load

Use the Load tag to load a template or another kind of file.

Loop

The Loop tag gets items of site content by type and repeats its inner content for each item.

Map

Use the Map tag to create a map, also called an associative array.

Markdown

The Markdown tag renders Markdown format (syntax reference).

Math

The Math tag evaluates mathematical expressions.

Menu

For loop type menu, here are the query parameters and fields.

Meta

Use the Meta tag to generate SEO meta tags.

Mobile Detect

This feature is based on Mobile Detect, a PHP library for mobile device detection.

Note

The Note tag is for keeping notes in a template.

Pagination

This is a feature for AJAX pagination of loops.

Path

The Path tag gets various folder paths.

Post

For loop type post, page, and custom post type, here are the query parameters and fields.

Prism

The Prism tag is a syntax highligher based on PrismJS.

Random

The Random tag generates a random number.

Raw

Use the Raw tag to surround content that you do not want to be rendered.

Redirect

The Redirect tag redirects to a different page or URL.

Route

The Route tag gets the current URL route, or a part of it.

SASS

This module extends the style tag to render the Sass styling language (reference).

Set and Get

The Set and Get tags are useful for remembering a value to use later, or in multiple places.

Setting

Use the Setting tag to get site settings.

Shortcode

Use the Shortcode tag to render shortcodes inside a template.

Site

The Site tag gets site settings.

Slider

The Slider tag provides a general-purpose slider. Each slide is wrapped in a Slide tag.

Taxonomy

For loop type taxonomy, here are the query parameters and fields.

Taxonomy and Term

The Taxonomy tag is a shortcut for creating a taxonomy term loop from the current post.

Taxonomy term

For loop type taxonomy_term, here are the query parameters and fields.

Template

Use the Template tag, or [template] shortcode, to render a template post.

Times

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

Type

The loop type type is for looping through loop types or post types. Here are the query parameters and fields.

Url

The Url tag gets various URLs for links.

User

For loop type user, here are the query parameters and fields.

User

The User tag is a shortcut to get a field from the current user.