Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Zorca Orcinus
    @zorca
    @cannap Timber fully supports ACF
    Mat Gargano
    @matgargano
    i wish it supported Posts 2 Posts as natively as it does ACF :)
    Marko Bolliger
    @cannap
    i know but i need to create a custom field for acf
    Zorca Orcinus
    @zorca
    my colleagues advised use Carbon Fields )
    Mat Gargano
    @matgargano
    htmlburger lol!
    theyre very good
    ive used them
    Zorca Orcinus
    @zorca
    but it is not easier
    Marko Bolliger
    @cannap
    i have payd for acf
    but i need to create my own dropdown with svg sprites
    Zorca Orcinus
    @zorca
    you dont need create new field type )your task may be solved with standard tools
    Marko Bolliger
    @cannap
    No i need a dropdown which shows icons
    from a svg sprite
    with select2
    over 50 icons
    simple solution would send him a reference pdf then he can use the name
    but i dont like this lazy stuff
    Roy Lodder
    @roylodder
    https://github.com/cyberwani/ACF-Image-Select maybe this can help you out.
    Marko Bolliger
    @cannap
    yea thx i know its very easy to make custom fields
    i just need to parse the svg sprite get ids out done
    Marko Bolliger
    @cannap
    done :P
    Marko Bolliger
    @cannap
    hi does the date helper using date_i18n
    ah yes nice
    checked the date function
    Roy Lodder
    @roylodder
    Hi there! I'm looking for examples for using Timber with WooCommerce. I want to build custom carts and checkout pages. All suggestions are welcome:-)
    Zorca Orcinus
    @zorca
    @roylodder all the standard woocommerce templates are in the folder wp-content/plugins.woocommerce/templates
    @roylodder you may copy its folder to your theme directory and modify it with adding timber
    rename folder to woocommerce
    Roy Lodder
    @roylodder
    Tried that and found it not really maintainable and flexible. Maybe we need a plugin like Sugar (https://github.com/timber/sugar) to provide WooCommerce twig tags. For example {{ wc_cart }} to get the complete cart array and {{ wc_cart.is_empty }} to get the cart state. I will give it a shot and may need your help. ;-)
    Zorca Orcinus
    @zorca
    $context['cart'] = WC()->cart->get_cart();
    Zorca Orcinus
    @zorca
    @roylodder but you still need to rewrite the standard woocommerce templates, as they are chosen in the first place
    Roy Lodder
    @roylodder
    @zorca that depends on how you setup your theme. I use the example woocommerce.php file and a custom cart template which I have assigned in WooCommerce. No default WooCommerce templates are used. I will publish my starter theme when it's ready. ;-)
    Zorca Orcinus
    @zorca
    @roylodder I redirect all queries on the views folder, where I planned positioning folders like plugins/woocommerce
    Adam
    @adamellsworth
    Are there docs available for older versions?
    Roy Lodder
    @roylodder

    @adamellsworth have a look at some of these links. Hope it helps you out. Are you looking for something specific?

    There's the wiki on Github:
    https://github.com/timber/timber/wiki

    Some old introduction videos:
    https://github.com/timber/timber/wiki/Video-Tutorials

    Useful official Twig 1.x docs:
    http://twig.sensiolabs.org/doc/1.x/

    The 1.0 upgrade guide for working your way back:
    https://github.com/timber/timber/wiki/1.0-Upgrade-Guide

    Grant McCall
    @grantmccall_twitter
    Hi guys, I'm hoping someone can point me in the right direction. I'm pulling my hair out. I'm trying to loop through each category in a custom post type and print out the title of each post within that category. Here's what I'm referring to:
    blob
    If this is the wrong place for help, I apologise.
    Roy Lodder
    @roylodder
    This will help you. "Post with terms" https://github.com/timber/timber/wiki/TimberTerm
    Grant McCall
    @grantmccall_twitter
    Thanks mate!
    Marko Bolliger
    @cannap
    Hi how can i access taxonomy fields //Taxonomie
    {% set location = event.get_field('event_location') %}
    {{ pc_debug(location.get_field('event_location_address')) }}
    event_location is a relation field from ACF
    this works:
    {% set test = fn('get_field','event_location_address', location) %}
                                    {{  pc_debug(test) }}
    Lukas G├Ąchter
    @gchtr
    @cannap What about this?
    {% set location = TimberTerm(event.event_location) %}
    {{ location.event_location_address }}
    Aleksandr Beliaev
    @certainlyakey
    In what cases are we supposed to use wp_kses_post in Timber Twig templates? Should we use it only with post content, default post excerpt, or with something else as well, such as rich text fields (say from ACF)?
    Marko Bolliger
    @cannap
    @gchtr i will try thank you
    other question i try to use theme.link in a included file
    but its false
    in header.twig it works
       <use xlink:href="{{ theme.link }}/assets/svg/icons.svg#icon-map"></use>
                                            </svg>
                                            {{ pc_debug(theme.link) }}