Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HOWTO: Call a Textpattern tag from PHP. Employs <txp:category1 /> for demonstration purposes, but this technique will work with any other tag. Note the use of attributes and their values passed into the tag handler function as an array.
echo category1(
'title' => '1',
'link' => '1',
'section' => 'articles'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment