dyadica.net

Fun and Games in the Dyadic Sea

Posts Tagged ‘post to page’

permalink image comments image
Sunday, 12 July '09: Cross Paging for Wordpress

At times I have found the need (want even desire) to be able to create a Page from a Post.

Yes I know that this can be classed as duplication of content, but some times its nice to be able to archive things in this manner and anyway you only create the content once ;)

So without further ado I introduce to you Cross Paging:

WordPress has the ability to allow authors to assign custom fields to Posts and Pages. This arbitrary extra information is known as meta-data.

We can use this data to ID a desired Posts content for use within a Page, simply by setting a reference to the Posts ID. The page checks to see if an ID has been set,  if so, then draws the content via a custom query: Read..

Tags: , , , ,

poll tags

css | xhtml | dyadica.net © admin 2010 | powered: wordpress | fuel: ps-wii-elite | top | sign-up