jarednova
Forum Replies Created
-
Forum: Plugins
In reply to: [Timber] Fatal Error: Class not found in 1.0.1@pierreminik and @lumedina: your best bet is to follow @calder12’s advice for now. Those functions were deprecated, but I’m working on restoring them for the 1.0.2 release (soon! I promise)
Forum: Plugins
In reply to: [Timber] get_comment_form() returns emptyThanks for the note @salthareket — try
{{ function('comment_form') }}
which will directly call WP’scomment_form
functionForum: Plugins
In reply to: [Timber] template_uri doesn't work since update@melusine29 the {{template_uri}} function has been deprecated. Try
{{ site.theme.link }}
to get the same infoForum: Plugins
In reply to: [Timber] Custom Taxonomy on Attachment Post TypeClosing this for now; again, please re-post on StackOverflow
Forum: Plugins
In reply to: [Timber] Custom Taxonomy on Attachment Post TypeHi @elukavsky! Please post questions on StackOverflow:
https://stackoverflow.com/questions/tagged/timber
… this way it makes it easier to share answers, tips and up-vote what works (oh and Google to find it all). Thanks for using Timber!
Forum: Plugins
In reply to: [Timber] Timber Best Practices: escapingHi @rwstone!
To get a field that’s been processed by ACF use
{{ post.get_field('my_acf_field') }}
and it will return it with the appropriate filters. From here on out, I’m switching all support over to the new StackOverflow tag:https://stackoverflow.com/questions/tagged/timber
… this way it makes it easier to share answers, tips and up-vote what works (oh and Google to find it all). Thanks for using Timber!
Forum: Plugins
In reply to: [Timber] Nested 'for loop' indexHi @nsc-creative! Please post questions on StackOverflow:
https://stackoverflow.com/questions/tagged/timber
… this way it makes it easier to share answers, tips and up-vote what works (oh and Google to find it all). Thanks for using Timber!
Forum: Plugins
In reply to: [Timber] Theme Changes not reflecting on front endHi @gary14793! Please post questions on StackOverflow:
https://stackoverflow.com/questions/tagged/timber
… this way it makes it easier to share answers, tips and up-vote what works (oh and Google to find it all). Thanks for using Timber!
Forum: Plugins
In reply to: [Timber] Fatal error, missing functions folder?Hi bnagie1431, can you file a report on the github issues page:
https://github.com/jarednova/timber/issues
… please include as much info as you can about version and what these arrays look like, thanks!
Forum: Plugins
In reply to: [Timber] Timber not working on php 5.3Hi @vantruong1810. PHP 5.3 is supported and the current build passes all the 5.3 tests:
https://travis-ci.org/jarednova/timber/builds/46013820
… based on the error ( ‘The “/” directory does not exist.’ in /home/web4viet/domains/web4viet.com/public_html/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:93 ) I think it’s a security issue with your server.
Forum: Plugins
In reply to: [Timber] Counter in loopHi @geminiluv, this link from the Twig docs will help you get the value of the loop iteration without the manual counter hack:
https://twig.sensiolabs.org/doc/tags/for.html#the-loop-variable
Forum: Plugins
In reply to: [Timber] Menu Active ClassI @ianatkins, I’ve got that code ready on a GitHub PR if you’re interested:
https://github.com/jarednova/timber/pull/376
… this will be added to the GitHub master branch soon and then pushed to WP.org — I’m interested in any tests/feedback you have based on your setup. Thanks!
Forum: Plugins
In reply to: [Timber] A New Theme Based Upon TimberThanks @Shapeshifter3; Really cool to see other people building with the tool!
Forum: Plugins
In reply to: [Timber] Menu Active ClassHey Ian! I’m looking into issues with the filterability of menu classes; something that should be a part of the next version. For your example, here’s what I recommend:
<li class="{{ item.current ? 'active' }}">
Forum: Plugins
In reply to: [Timber] Custom Post Type ArchiveHi @drdestefanis — that should work. Can you post the PHP?