[wp-hackers] problem with $post->post_parent
Brian Fidler
fidler.brian at gmail.com
Mon Mar 29 04:27:34 UTC 2010
yes, just above the first if statement...
global $post;
if ( is_page('paintings') || $post->post_parent == '912' ) {
[image: brian fidler interactive] <http://www.brianfidler.com>
email: interactive at brianfidler.com
phone: 602.758.4733
[image: View Brian Fidler's profile on
LinkedIn]<http://www.linkedin.com/in/brianfidler>
On Sun, Mar 28, 2010 at 9:24 AM, Matt Martz <matt at sivel.net> wrote:
> >
> > Any ideas what might be going wrong?
> >
>
> Did you do:
>
> global $post;
>
> before trying to use $post?
>
> --
> Matt Martz
> matt at sivel.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list