Title: ACF Timber Integration
Author: Dream Production
Published: <strong>19. 12. 2017</strong>
Last modified: 10. 2. 2021

---

Prohledat pluginy

![](https://ps.w.org/acf-timber-integration/assets/banner-772x250.png?rev=1789312)

Plugin **nebyl testován na 3 nejnovějších verzích WordPressu.** Nemusí už být tedy
podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může
být nestabilní.

![](https://ps.w.org/acf-timber-integration/assets/icon-256x256.png?rev=1789312)

# ACF Timber Integration

 Autor: [Dream Production](https://profiles.wordpress.org/dream-production/)

[Stáhnout](https://downloads.wordpress.org/plugin/acf-timber-integration.zip)

 * [Podrobnosti](https://cs.wordpress.org/plugins/acf-timber-integration/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/acf-timber-integration/#reviews)
 *  [Instalace](https://cs.wordpress.org/plugins/acf-timber-integration/#installation)
 * [Vývojáři](https://cs.wordpress.org/plugins/acf-timber-integration/#developers)

 [Podpora](https://wordpress.org/support/plugin/acf-timber-integration/)

## Popis

This plugin is intended for developers that are using Advanced Custom Fields and
Timber to develop their themes.

By enabling this plugin the user-defined advanced custom fields will be available
in the Timber context variable as follows:

 * Fields defined for settings pages will be available everywhere under the „options“
   key
 * Fields defined for posts, pages and custom post types will be available on the\
   Timber\Post object under the „fields“ key
 * Fields defined for terms will be available on the \Timber\Term object under the„
   fields“ key
 * Fields defined for users will be available on the \Timber\User object under the„
   fields“ key
 * Defined menus will also be available everywhere under the „menus“ key

Also adds twig functions for images:

 * srcset – used to generate srcset attribute tag.
    Usage: `<img src="{{ post.thumbnail.
   src('large') }}" {{ srcset(post.thumbnail,'large') }} />`
 * image_attr – used to generate srcset, width, height and alt.
    Usage: `<img src
   ="{{ post.thumbnail.src('large') }}" {{ image_attr(post.thumbnail,'large') }}/
   >`

## Instalace

 1. Install Advanced Custom Field v5 or Advanced Custom Fields Pro
 2. Install Timber WordPress Plugin
 3. Install ACF Timber Integration
 4. Start creating twig files
 5. Profit

## Nejčastější dotazy

### Why not just use the get_field() function directly in the twig file?

Because that’s not a truly MVC approach. You can still use the get_field() function
in twig, but it’s easier for the frontend developer to have everything available
directly in the context variable.

### Timber already plays nice with Advanced Custom Fields, why would I use your plugin?

Timber does not transform Images, Galleries, Posts, Taxonomies or Users to the equivalent
Timber Object when using get_field() or accessing the field directly in the post
object. You will need to cast each of these in order to use them as Timber Objects
without using our plugin.

## Recenze

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

### 󠀁[Thanks for plugin](https://wordpress.org/support/topic/thanks-for-plugin-22/)󠁿

 [Andy Iv.](https://profiles.wordpress.org/digitalandyeu/) 23. 6. 2021

Thanks for plugin

 [ Přečtěte si 1 recenzi ](https://wordpress.org/support/plugin/acf-timber-integration/reviews/)

## Autoři

ACF Timber Integration je otevřený software. Následující lidé přispěli k vývoji 
tohoto pluginu.

Spolupracovníci

 *   [ Dream Production ](https://profiles.wordpress.org/dream-production/)
 *   [ Daniel Telbis ](https://profiles.wordpress.org/danieltelbis/)
 *   [ Mircea Tihu ](https://profiles.wordpress.org/sticksu/)

[Přeložte “ACF Timber Integration” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/acf-timber-integration)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/acf-timber-integration/),
podívejte se do [SVN repozitáře](https://plugins.svn.wordpress.org/acf-timber-integration/),
nebo se přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/acf-timber-integration/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/acf-timber-integration/?limit=100&mode=stop_on_copy&format=rss).

## Přehled změn

#### 1.4.0

 * Fixed compatibility with latest ACF and Timber plugins *
 * Removed object group cache system and use ACF to get object groups *
 * Removed ACF 4 support *

#### 1.3.2

 * Fixed error notice if no nav menu is registered.

#### 1.3.1

 * Fixed missing fields on ajax requests

#### 1.3.0

 * Added posts fields limit, use acf_timber_posts_fields_max_depth filter to modify
   depth.

#### 1.2.1

 * Minor bug fixes.

#### 1.2

 * Added field group cache and cache clear.
 * Added ACF 4 support.

#### 1.1

 * Added clone and group field support.

#### 1.0

 * Plugin initialization.
 * Added main functionality.

## Meta

 *  Verze **1.4.0**
 *  Poslední aktualizace **před 5 roky**
 *  Aktivních instalací **200+**
 *  Verze WordPressu ** 3.7 nebo novější **
 *  Testováno až do WordPressu **5.6.17**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/acf-timber-integration/)
 * Štítků
 * [acf](https://cs.wordpress.org/plugins/tags/acf/)[advanced custom fields](https://cs.wordpress.org/plugins/tags/advanced-custom-fields/)
   [integration](https://cs.wordpress.org/plugins/tags/integration/)[Timber](https://cs.wordpress.org/plugins/tags/timber/)
   [twig](https://cs.wordpress.org/plugins/tags/twig/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/acf-timber-integration/advanced/)

## Hodnocení

 5 z 5 hvězdiček.

 *  [  1 5hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/acf-timber-integration/reviews/?filter=5)
 *  [  0 4hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/acf-timber-integration/reviews/?filter=4)
 *  [  0 3hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/acf-timber-integration/reviews/?filter=3)
 *  [  0 2hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/acf-timber-integration/reviews/?filter=2)
 *  [  0 1hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/acf-timber-integration/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/acf-timber-integration/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/acf-timber-integration/reviews/)

## Spolupracovníci

 *   [ Dream Production ](https://profiles.wordpress.org/dream-production/)
 *   [ Daniel Telbis ](https://profiles.wordpress.org/danieltelbis/)
 *   [ Mircea Tihu ](https://profiles.wordpress.org/sticksu/)

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/acf-timber-integration/)