
Widget UI. Click by gear for open page level variables modal
Tea Page Content is a powerful plugin that allows create widget or shortcode with content of any page, post, etc, and customize look of blocks via template system. You can select one or more entries, choose template (or create your own) and display it by widget or shortcode. Templates presents very flexible system for appearance control.
If you found a bug or have a suggestion, please create topic on forum or send me email (raymondcostner at gmail.com).
You can find primary description at Other Notes tab, and details at Github Page.
There is just one shortcode tea_page_content. Below there is an example with basic parameters.
[tea_page_content template=”default” order=”asc” posts=”12,45,23″]
You also can used template variables (see Templates section at documentation) and options.
There is some built-in options. Let’s take a closer look:
default or your-template-name.show_page_thumbnail="false". Default – true.By default plugin will be search custom templates in a folder named templates in your theme. For create the one just add into this directory a new file with name like tpc-{template-name}.php. Every template should be named by that mask! Then put in created file your code. For example:
For using your templates in shortcode, you need just choose it in widget or pass full filename (but without extension) in shortcode. For example:
template=”tpc-my-template”
Above you can see very simple example of custom template with title and content parameters. But this is not all – there is a full list of allowed parameters which you can use.
widget or shortcode.the_content function, in other cases will be used the_excerptBecause full manual is too long, you can see it at Github Page. Get details and updating information about new features includes filters, template-level variables and more.