• Hello,

    I’m a Drupal convert trying to get used to the WP template engine and having a difficult time with the following query:

    else if ( is_single()) { the_title( $title_before, $title_after ); if ( get_post_type() != 'parish' ) { wp_reset_query(); otw_post_meta(); } }

    The query, as I understand it, is listing the post meta information (otw_post_meta) in all post types except my custom ‘parish’ type. I have a few other custom types in which I would like to exclude the post meta information. I tried the following, which makes sense to me, but does not seem to work:

    else if ( is_single()) { the_title( $title_before, $title_after ); if ( get_post_type() != 'parish' or 'event' ) { wp_reset_query(); otw_post_meta(); } }

    What am I doing wrong?

    Any help is appreciated.

  • The topic ‘Select Multiple Custom Types for If Statement’ is closed to new replies.