Support

Account

Home Forums General Issues Query cpt then echo if relationship exists Reply To: Query cpt then echo if relationship exists

  • Have tried the following and it’s removed the error but does not display anything if the page has no selected addons. If the array doesn’t exist then I can’t get it to output anything.

    <?php 
        if(is_array($addons_included_ids)) :
        if( in_array($addon->ID, $addons_included_ids) ): ?>