A Tiny Post Content Template Interpreter

Plugin Banner

A Tiny Post Content Template Interpreter

by Magenta Cuda

Download
Description

“A Tiny Post Content Template Interpreter” instantiates templates written in a language that only uses WordPress shortcodes and is embedded directly in the post content. The templates consists of HTML, WordPress shortcodes, template variables, template variable assignment statements, template if else constructs and template iterator constructs. Template instantiation is done by simple variable interpolation. Please visit the documentation for a quick introduction. Also, included is a “Shortcode Tester” which displays in a popup window the HTML generated by WordPress from shortcodes. This plugin requires at least PHP 5.4.

  1. Download the plugin from the WordPress repository.
  2. Open the ‘Plugins’ menu item and activate the plugin.
  3. Open the ‘Settings->A Tiny Post Content Template Interpreter’ menu item and configure the plugin.
  4. Read the tutorial at http://tpcti.wordpress.com/.
  1. The Shortcode Tester

    The Shortcode Tester

  2. The Template Selector

    The Template Selector

1.2

  • the right hand side of an assignment statement can be an expression with arithmetic and concatenation operators and parenthesis

1.1.1

  • if condition now supports a boolean combination of comparison expressions, e.g. #if( $#alpha#=”1″ && $#beta#!=”2″ || $#gamma#>=”3″ || $#delta# )#

1.1

  • Support optional arguments for filter functions, e.g. alpha@sprintf(‘The value is: %s’,$) where $ specifies the position of value to be filtered
  • Support negative indexes e.g. alpha@<-1> references the last value of the multi-valued custom field alpha
  • Support !=,<,<=,>=,> as conditional operators

1.0.1

  • Fixes for WordPress 4.3 beta.

1.0

  • Initial release.
Back to top