Title: VK Dynamic If Block
Author: Vektor,Inc.
Published: <strong>27. april, 2023</strong>
Last modified: 19. maj, 2026

---

Søg plugins

![](https://ps.w.org/vk-dynamic-if-block/assets/banner-772x250.png?rev=3484565)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://ps.w.org/vk-dynamic-if-block/assets/icon.svg?rev=3484565)

# VK Dynamic If Block

 Af [Vektor,Inc.](https://profiles.wordpress.org/vektor-inc/)

[Download](https://downloads.wordpress.org/plugin/vk-dynamic-if-block.1.6.1.zip)

 * [Detaljer](https://da.wordpress.org/plugins/vk-dynamic-if-block/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/vk-dynamic-if-block/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/vk-dynamic-if-block/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/vk-dynamic-if-block/#developers)

 [Support](https://wordpress.org/support/plugin/vk-dynamic-if-block/)

## Beskrivelse

VK Dynamic If Block is a custom WordPress block, primarily designed for FSE, that
allows users to display Inner Block based on specified conditions. With this block,
you can show or hide Inner Block depending on various conditions, such as whether
the current page is the front page or a single post, the post type, or the value
of a Custom Field.

## Blokke

Dette plugin giver 1 blok.

 *   Dynamic If

## Installation

 1. Upload the plugin files to the ‘/wp-content/plugins/vk-dynamic-if-block’ directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the block editor to add a “Dynamic If” block to your post or page.

## FAQ

### Can I use multiple conditions?

You cannot specify too many conditions.
 However, by nesting Dynamic If Blocks, 
various conditional branching can be handled.

## Anmeldelser

![](https://secure.gravatar.com/avatar/7f8ccbe2b3e45cc635bbdd172b251816e71ae969bb1c14c7c4861ff299304a17?
s=60&d=retro&r=g)

### 󠀁[1.3.0でのBogo連携時にLanguageが選択できない](https://wordpress.org/support/topic/1-3-0%e3%81%a7%e3%81%aebogo%e9%80%a3%e6%90%ba%e6%99%82%e3%81%ablanguage%e3%81%8c%e9%81%b8%e6%8a%9e%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/)󠁿

 [prspyy](https://profiles.wordpress.org/prspyy/) 19. august, 2025

※サポートへ記載するべき内容だったので内容を削除しました

![](https://secure.gravatar.com/avatar/08da875fad10ebe05e07dd03bc9a434c79f08f2240c2e57946eadd8f495e01b6?
s=60&d=retro&r=g)

### 󠀁[Also useful with classic theme.](https://wordpress.org/support/topic/also-useful-with-classic-theme/)󠁿

 [対馬 俊彦](https://profiles.wordpress.org/uonumajs/) 30. juni, 2023

I'm using this plugin with Lightning (a classic theme). It also works fine with 
this classic theme, and in some cases it's better than using action hook.

 [ Læs alle 2 anmeldelser ](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/)

## Bidragsydere & udviklere

“VK Dynamic If Block” er open source-software. Følgende personer har bidraget til
dette plugin.

Bidragsydere

 *   [ Vektor,Inc. ](https://profiles.wordpress.org/vektor-inc/)
 *   [ Hidekazu Ishikawa ](https://profiles.wordpress.org/kurudrive/)
 *   [ Daiki Oshima ](https://profiles.wordpress.org/doshimaf/)
 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)

“VK Dynamic If Block” er blevet oversat til 1 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/vk-dynamic-if-block/contributors)
for deres bidrag.

[Oversæt “VK Dynamic If Block” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/vk-dynamic-if-block)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/vk-dynamic-if-block/),
tjek [SVN repository](https://plugins.svn.wordpress.org/vk-dynamic-if-block/), eller
abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/vk-dynamic-if-block/)
via [RSS](https://plugins.trac.wordpress.org/log/vk-dynamic-if-block/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.6.1

[ Other ] Fix an issue where blocks become locked and cannot be edited when inserting
patterns in WordPress 7.0.
 [ Other ] Update vk-helpers library from 0.0.4 to 0.2.1.

#### 1.6.0

[ Specification change ] Change the display order of page settings UI for Page Type
> is_page.

#### 1.5.1

[ Specification change ] Change the version number to four segments.
 [ Specification
change ] Lightweight and faster author extraction method. [ Bug fix ] Fix an issue
where blocks wobble on the template list screen in the site editor. [ Bug fix ] 
Fix console warning message. [ Other ] Fix editor CSS loading method.

#### 1.5.0

[ Add Function ] Added specific page selection functionality for Page Type conditions.

#### 1.4.2

[ Bug fix ] Fix an issue where else block content is cut off in the middle for complex
HTML structures.

#### 1.4.1

[ Bug fix ] Fix an issue where the date input field is not displayed when “Direct
input in this block” is initially selected for display period conditions.

#### 1.4.0

[ Add Function ] Add Else block functionality to display alternative content when
conditions are not met.

#### 1.3.2

[ Bug fix ] Fix an issue where the condition label is not translated.
 [ Bug fix]
Fix Language condition error

#### 1.3.1

[ Bug fix ] Fix translation not working for some labels.

#### 1.3.0

[ Add Function ] Added condition to display content based on specific taxonomy and
terms.
 [ Add Function ] Added condition to display only to mobile devices. [ Other]
Fix translation

#### 1.2.0

[ Other ] Prevent automatic migration of old block structure on frontend and migrate
to new structure when saving in editor.

#### 1.1.0

[ Add Function ] Add page hierarchy conditions (parent/child page) to page type 
and post type conditions for pages.
 [ Bug fix ] Fix an issue where duplicating 
the VK Dynamic If Block caused all instances to share the same condition. [ Bug 
fix ] Fix Label color

#### 1.0.0

[ Specification Change ] Changed UI to stacked condition format.

#### 0.9.4

[ Other ] Update alert message

#### 0.9.3

[ Specification change ] Change version 1 download url to GitHub from .org
 [ Bug
fix ] Fix Label color

#### 0.9.2

[ Specification change ] Added update notification for version 1.

#### 0.9.1

[ Specification change ] Add the condition !is_year() && !is_month() && !is_date()
for Post Type Archives.

#### 0.8.6

[ Specification change ][ Author Archive ] Changed to target only users with the
role of Contributor or higher who have at least one published article.

#### 0.8.5

[ Add Function ][ Author Archive ] Allow specifying the author.
 [ Bug Fix ] Fix
readme typo

#### 0.8.4

[ Add Function ] Add exclusion indicator to condition labels.

#### 0.8.3

[ Specification change ] Fixed the zoom-out toggle not always displaying in the 
editor toolbar (updated blocks.json API version from 2 to 3).

#### 0.8.1

[ Bug Fix ] Fixed an issue where en_US could not be specified in the language selection
options.

#### 0.8.0

[ Add Function ] Add a conditional branching function based on language.

#### 0.7.0

[ Add Function ] Added condition to display only to login user.
 [ Specification
Change ] Fix WordPress 6.3 transforms settings.

#### 0.6.3

[ Fix ] Fixed a bug related to the period setting when referencing a custom field.

#### 0.6.2

[ Fix ] Fix the bug in conditional branching based on user roles.

#### 0.6.1

[ Fix ] Correct the translation

#### 0.6.0

[ Add Function ] Added user roles condition
 [ Add Function ] Added date condition[
Fix ] Added UserRole label to block.

#### 0.5.0

[ Add Function ]Added transforms settings to wrap and unwrap.

#### 0.4.3

 * [ Bug fix ] Fixed bug in conditional branching based on custom field values

#### 0.4.1

 * Update descriptions

#### 0.4.0

 * Add custom field conditions

#### 0.3.1

 * Fix translate

#### 0.3.0

 * Add exclusion setting

#### 0.2.7

 * Set text domain for translations

#### 0.2.6

 * Set text domain for translations

#### 0.2.4

 * Fix readme

#### 0.2.3

 * Add fallback for vendor files failed to deliver or load.

#### 0.2.1

 * Add default paragraph block

#### 0.2.0

 * Add conditions

#### 0.1.0

 * Initial release

## Meta

 *  Version **1.6.1**
 *  Senest opdateret **6 måneder siden**
 *  Aktive installationer **4.000+**
 *  WordPress-version ** 6.4 eller højere **
 *  Testet op til **6.8.12**
 *  PHP-version ** 7.4 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/vk-dynamic-if-block/) og [Japanese](https://ja.wordpress.org/plugins/vk-dynamic-if-block/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/vk-dynamic-if-block)
 * Tags
 * [conditional display](https://da.wordpress.org/plugins/tags/conditional-display/)
   [custom field](https://da.wordpress.org/plugins/tags/custom-field/)[if](https://da.wordpress.org/plugins/tags/if/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/vk-dynamic-if-block/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  2 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/vk-dynamic-if-block/reviews/)

## Bidragsydere

 *   [ Vektor,Inc. ](https://profiles.wordpress.org/vektor-inc/)
 *   [ Hidekazu Ishikawa ](https://profiles.wordpress.org/kurudrive/)
 *   [ Daiki Oshima ](https://profiles.wordpress.org/doshimaf/)
 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/vk-dynamic-if-block/)