Skip to content

TimberPost equivalent in Timber 2.x #2814

Closed Answered by verma-s3
robpetrin asked this question in Q&A
Discussion options

You must be logged in to vote

use this:
$context = Timber::context(); $context['footer'] = Timber::get_post();
You can find your guidelines for this code in the 2.x docs here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nlemoine
Comment options

Answer selected by gchtr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants