Write to me

Software / Archived, not developed further

TukuToi ShortCodes

Shortcodes that output any post, user, term or site data raw, plus nesting, if/else conditions and maths - without eval(). The base of a ClassicPress site-building suite.

TukuToi ShortCodes turns the common WordPress data functions into shortcodes. Site info, posts, terms, taxonomies, users and their meta can all be printed anywhere a shortcode works, without writing PHP.

The output is raw on purpose: no wrapper markup, no styles. You place the value in whatever HTML you write.

Three features go beyond printing data:

  • Nesting in attributes. WordPress stopped parsing shortcodes inside shortcode attributes in 4.2.3. The plugin has its own processor that allows it again, so one shortcode can feed its result into another, for example the current post ID into a term query.
  • Conditions. A conditional shortcode writes if/else logic directly in the editor. It evaluates a fixed set of operators and never passes input to eval().
  • Maths. Arithmetic on any values, modulo included.

An editlinks shortcode adds edit links on the front end.

An editor button inserts shortcodes with their options, and developers can register their own shortcodes into that same interface.

It is the base for TukuToi Template Builder and TukuToi Search and Filters; together the three cover templates, dynamic data and front-end search without a page builder.

Current state

No longer developed. The last release is 1.26.2 (June 2022), tested against ClassicPress 1.x (WordPress 4.9).