Skip to content

Instantly share code, notes, and snippets.

Embed
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.
<txp:php>
echo category1(
array(
'title' => '1',
'link' => '1',
'section' => 'articles'
)
);
</txp:php>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment