2009-12-25, 15:54:45
I was thinking (always dangerous) if the function accepted an optional argument of a page-slug - we could in fact have as many content areas per page as we want - each with a WYSIWYG editor - so components could stay code only
if you used a structured naming system
page_slug: 'about-us'and we could concatenate a sidebar 'sidebar-about-us' etc..
a simple addition to the codex that IMHO expands the scope substantially - and since it's an optional argument - really nothing else needs to change.
thoughts?
Code:
get_page_content()
if you used a structured naming system
page_slug: 'about-us'
Code:
get_page_content()
Code:
get_page_content(<? 'sidebar-'.return_page_slug(); ?>)
a simple addition to the codex that IMHO expands the scope substantially - and since it's an optional argument - really nothing else needs to change.
thoughts?