PoliMorf Theme: How To Format and Style Individual Pages and Posts.

If you want even more detail, read the PoliMorf User Guide.

PoliMorf allows you to design and style pages and posts at either the theme level or at the individual level. It also allows you to use WordPress functionality, such as menus and widgets, in any part of the page or site.

You may decide to use very little of the functionality and be happy using WordPress plugins. Or you may wish to structure your site as a set of remote files, only using WordPress as a skeleton structure that references out to the Cloud. It is up to you how you want to use it.

The basic post list format contains schematic tags (starting with "///") and schematic commands (starting with "%%" and ending with "::"):

///HEADER:
%%DEFAULT::
///MAIN:
%%CONTENT_META::
%%CONTENT_DEFAULT::
%%PAGINATION::
%%COMMENTS::
///FOOTER:
%%DEFAULT::

The main elements of the post are a Header region, a Main body region and a Footer region. In other words, a simple page format. There is no sidebar in this template though one can be added easily using a "///SIDEBAR:" schematic tag. The DEFAULT schematic command refers to the Options in the Admin area, where a default format for header and footer can be saved.

The Main region contains some meta data about the post i.e. title, categories and tags it is posted under, author name and date. This data can be altered by changing the format under the "%%CONTENT_META::" command. The other commands in this section have no extra components. The command, "%%CONTENT_DEFAULT::", echoes the WordPress content to the screen meaning that any function or plugin you use will also be able to manipulate this content or hook around it.

If you decided to not use WordPress content on your page but you still wanted the functionality of "the_content()" (see the WordPress Codex) you can still use the "%%CONTENT_DEFAULT::" command. To add your own content you would use the "%%CONTENT::" command and add elements below:

///HEADER:
%%DEFAULT::
///MAIN:
%%CONTENT_META::
%%CONTENT_DEFAULT::
%%CONTENT::
<elements here ...>
%%PAGINATION::
%%COMMENTS::
///FOOTER:
%%DEFAULT::

Combining Both WordPress and Custom Content

What if you want to combine WordPress content using the editor with custom content you define in the format?

If you want to have lots of text around other functionality, the answer is to use the "%%CONTENT_INSERT::" command.

You define the insert content, which is basically formatted text, and you place the insert marker into the WordPress content. You don't have to use "%%CONTENT_DEFAULT::" as editor content is already displayed along with custom content.

///HEADER:
%%DEFAULT::
///MAIN:
%%CONTENT_META::
%%CONTENT_INSERT::
[[Insert-1]]
TEXT=[ .... ]:
%%PAGINATION::
%%COMMENTS::
///FOOTER:
%%DEFAULT::
[\2n] [[Insert-1]] is added to the content:
[[Insert-1]]<Wordpress content>

Currently the inserts are formatted text. You can also add in specific html using tag substitutions.

Refer to the PoliMorf User Guide for more detail.

Pages and Posts

Layouts

Remote

Understood
This website is using cookies. More details