Wordpress - How to check in timber if user is loggedin?
Found it already, to do this you can use the 'user' object:
{% if user %}
Hello {{ user.user_nicename }}
{% else %}
you are not loggedin
{% endif %}
Found it already, to do this you can use the 'user' object:
{% if user %}
Hello {{ user.user_nicename }}
{% else %}
you are not loggedin
{% endif %}