... wordpress if pagepost query ...



• wordpress if pagepost query »»


Hi folks

I am trying to serve specific banners on one of my wpressed sites depending on the pageslug..

I had a bunch of pages which was ok

eg.

Code:
if ( is_page('casinos') )
include(TEMPLATEPATH . '/bannerincludes/casinostop.inc');
however I have moved some pages to make them posts

how do i say something like

Code:
if ( is_post('casinos') )
include(TEMPLATEPATH . '/bannerincludes/casinostop.inc');
I have tried using the postID rather than 'casinos' but to no avail.

There is no is_post function..
any help appreciated. From what i read, I was sure WPress treats posts and pages pretty much identically


cheers
niall
 Bookmark with:            
Source: IrishWebMasterForums | pub: 12 Apr 2008 by: 3rigena | added: 12 Apr 2008 | cat: Cms And Content Management | views: 64 time/s
Related Articles...
Leave a Comment...
Name: *
Email: *
Comment: *
Security Code: security code
*
     Remember me:
Categories
Channels
Press Release