Oracle of ONE1

Obscure words of unity

ggis-InlinePost

ggis-InlinePost gives authors an easy way to insert a post within a page or another post. Simply add [-ggis-inlinepost postID-] to your post. There are a few parameter to conrol the display of the inlined post’s title, metadata, and separators.

Installation

  1. Download the latest version of the plugin.
  2. Unzip the plugin.
  3. Upload the file ggis-inlinepost.php to the ‘/wp-content/plugins/’ directory.
  4. Activate the plugin through the ‘Plugins’ menu in WordPress.
  5. Edit the ggis InlinePost optional parameters from the Settings menu.
  6. Place [-ggis-inlinepost id=”id” -] in your posts.

Frequently Asked Questions

Can I put more than 1 inline post on a page?

Yes.

Does this act recursively by including posts within posts within posts?

No.

What usage do you recommend as best practice for this plugin?

Because of the recursion issue, I only inline post onto pages. Wordpress does not strongly differentiate between posts and pages other than by a post_type flag. This means you could inline a page into a page. Best practice is to only inline posts into pages.

How can I adjust the inline post’s appearance?

You should be able to fully control your form’s appearance using CSS. The HTML output is fully embedded with CSS tags to make personalization easy. The DIV tag is of the form:

<div class="ggis-inlinepost" id="ggis-inlinepost-f56-p69">

The class applies to all inline posts but the id specifically identiefies the post inlined (f) with the page it is inlined onto (p).

Usage

A post may be inlined onto a post or page, by including the following code, enclosed by [-  -], in your text.

[-ggis-inlinepost id="%id" titletag="%tag"-]

Here is an explanation of the all fields:

  • [- is the opening tag
  • -] is the closing tag
  • ggis-inlinepost - identifies the code (required)
  • id - id of post to include (required)
  • titletag - the tag in which to enclose the title (limited to simple tags such as h2, h5, p, b, etc.)
  • topseparator - put a horizontal rule before the post (0/1, default = 0)
  • botseparator - put a horizontal rule after the post (0/1, default = 0)
  • showtitle - show title of the post (0/1, default = 1)
  • showmeta - show metadata of the post, includes modified date and comments (0/1, default = 1)

All of the above optional fields may be set via the wordpress dashboard settings.

Plugin ggis-InlinePost for WordPress

Last modified on 2008-11-04 11:42:45 CDT. 0 comments

New plugin for Wordpress developed. It should be available on the their site shortly. In the meantime, it will be available for download here. If you have any comments or questions, please add them here.