HTML comment cause issue in functions.php script root

The functions.php is loaded before WordPress has sent the HTTP response headers. If you have raw HTML content in that file, even a HTML comment, then that will be sent immediately, triggering PHP’s built-in HTTP headers. Now, WordPress doesn’t know about this and tries to send the headers as usual. And that will cause an … Read more

Using A PHP App in WordPress

WP is different than PHP code. Content is stored in a database, and displayed via template files, which come with your theme. Which template displays your content? Take a look at the Template Hierarchy (ask the googles/bings/ducks, or look in the Codex via the link below). For instance, a page is usually displayed with a … Read more

Show code dependant on CPT & category

has_category applies only to default post type. You are working on a CPT so you should use has_term() if ( is_singular( ‘eventbrite_events’ ) && has_term( ‘network’, ‘{YOUR_CUSTOM_TAXONOMY}’ ) ) where {YOUR_CUSTOM_TAXONOMY} is optional and it must be the slug for eventbrite_events taxonomy to which the term ‘network’ is attached to.