How does one combine or "nest" more than one conditional tag?
For example: Let's say I want to create a test that is true under either of the following conditions:
is_page('128') or
is_single()
thanks!
How does one combine or "nest" more than one conditional tag?
For example: Let's say I want to create a test that is true under either of the following conditions:
is_page('128') or
is_single()
thanks!
if( is_page('128') || is_single() )
Thanks Esmi!
I mostly follow.
Can you point me to a description of special page numbers like '128', and '039'? Is there something in the codex? I couldn't find it.
Bill
I would start by looking at the WordPress Codex Conditional Tags page:
The numbers are ids of Pages, Posts etc. Essentially, they are the record (row) numbers in the database for that object See How do I find an id?
I think that will put me in business for the time being.
Thanks for your help Esmi and Mark!
Bill
No problem :-)
This topic has been closed to new replies.