Skip to content

Better ACF Integration, More Routes Improvements

Compare
Choose a tag to compare
@jarednova jarednova released this 09 Oct 18:29
  • More flexiblity for custom routes (thanks @mgmartel)
    #75
  • Added function wrappers for core objects (TimberPost, TimberImage and TimberTerm). This greatly helps when you need to have retrieved custom fields or repeaters interpreted as posts or terms:
<img src="{{TimberImage(post.my_custom_image_id).src}}" />
  • Renamed "WPHelper" to more namespace-friendly "TimberHelper." Don't worry old WPHelper calls will still work, but that class will be deprecated in an upcoming version.
  • Added function_wrapper helper to execute functions where they are placed in the template as opposed to when they are generated (@mgmartel)
    #77
  • You can now have custom fields processed via post.get_field('my_custom_field'). This is a huge help for using things like Advanced Custom Fields' repeater.
  • Performance improvements