ALM Previous Post – Pass variable to repeater template
-
Hi Darren,
sorry to open another ticket again. But I can’t figure out how to pass a variable to a repeater template. I’m using your Previous Post plugin. In my repeater template I want to check if it’s the first post being loaded.
My first attempt was to save get_the_id() to a variable, pass that variable to my repeater template and then do something like this:
if(get_the_id() == $passed_variable) { // do stuff }
Hope you can help me with this too. Thanks mate!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘ALM Previous Post – Pass variable to repeater template’ is closed to new replies.