Closed GoogleCodeExporter closed 9 years ago
Now let me know if this is becoming absurd.
$c[] = 'page-template page-template-' . str_replace( '.php', '-php',
get_post_meta(
$pageID, '_wp_page_template', true ) );
Har har har.
Original comment by swall...@gmail.com
on 22 Apr 2008 at 3:32
Sure, looks good. Thanks, Ian.
Completed at rev 258.
Original comment by swall...@gmail.com
on 22 Apr 2008 at 3:43
Was trying to translate this to the functions (couldn't get it to work of
course) …
$template = get_post_meta($id, '_wp_page_template', true);
echo str_replace(".php","",$template);
in the hopes of making scottsbane.php produce .template-scottsbane
If it was template over page-template that wouldn't be so absurd.
To defend it's non-absurdness: hide the blogroll widget on the links page &
hide the
archives widget on the archives page using only CSS.
Or all templates get a special background image like, scottsbane.jpg.
Original comment by idstewar...@gmail.com
on 22 Apr 2008 at 3:46
Oh, wait. You added it. Har Har.
Original comment by idstewar...@gmail.com
on 22 Apr 2008 at 3:48
Original issue reported on code.google.com by
idstewar...@gmail.com
on 22 Apr 2008 at 2:45