Theme Check
[resolved] Fixing: WARNING: Found PHP short tags in file (3 posts)

  1. CreativeWP
    Posted 3 years ago #

    This is a great tool. I am validating a Theme. It is so much joy. BUT I got stuck right now, the website has this code, which I am at lost how to make it pass, any ideas?

    	$catid = get_cat_id($bmb_portfolio_id);
    	if (is_category_or_sub($catid)) { ?>
    	<?php load_template(get_template_directory() . '/portfolio.php' );?>
    	<? } else if (is_category($bmb_services_id)){ ?>
    	<?php load_template(get_template_directory() . '/services.php' );?>
    	<? } else { ?>


  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 3 years ago #

    Don't use PHP Short tags. Most webhosts do not have them enabled.

    In other words, use <?php instead of <?.

  3. CreativeWP
    Posted 3 years ago #

    Did it, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic