You’re missing the <?php
tag before the closing bracket, so it’s not being processed. Your code updated below:
<?php if ( is_singular('customer') ) { ?>
<img src="https://wordpress.stackexchange.com/questions/312935/<?php bloginfo("template_directory'); ?>/dist/images/logo-customer.png" alt="Logo Customer">
<?php } else { ?>
<img src="https://wordpress.stackexchange.com/questions/312935/<?php bloginfo("template_directory'); ?>/dist/images/logo.png" alt="Logo">
<?php } ?>
Related Posts:
- get all posts from a custom post type
- Set post date before 1970
- Single loop for wp_query and wp_user_query
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- Create an archive page for custom taxonomies
- Using custom field as custom post title
- Grab 5 latest posts from custom post type ‘announcements’
- Pagination Doesn’t Work
- filter search result with custom post type meta key
- When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- Add an A-Z menu at the top of A-Z listing code
- get a list of posts from Custom Taxonomy
- Automatically check “Allow comments” for custom post type [duplicate]
- Trying to manage templates on a blog with lots of custom taxonomies
- How to register custom post types in a plugin?
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Having trouble with custom date field for CPT query (WordPress)
- How to retrieve custom field types for all posts in WordPress/PHP?
- Need functionality with all post list available at edit.php
- Add custom capabilities to existing custom post type
- Custom post type and taxonomy permalinks – Structure
- Custom Post Type Post have a Child `Page` Post Type Post
- Use get_post_types to query only custom posts types
- pre_get_posts on custom post type
- Add a label to the editor?
- How to duplicate fields in custom post types?
- Send email button in custom post type backend
- add category name to permalinks on product page /category-name/product-name
- create parent post using wp_insert_post
- Exclude pages in archives results
- current post index within content.php
- create a new page from a custom post type similar to an authors page
- Can multiple authors be assigned on a single custom post?
- How to display custom post in archive section of the wordpress page?
- Displaying Custom Taxonomies From Multiple Custom Post Types
- Not getting posts of custom post types
- Filter date from post meta when date is in string format
- Properly flush rewrite rules on plugin activation
- Check for a specific taxonomy of a custom post type
- Add custom CSS class to custom post type
- Dynamic bootstrap tabs with post_title doesn’t display the_content
- Custom post type – list posts based on meta_key and display them divided by CPT taxonomy category
- portfolio custom type tags support
- Saving fields in a drop-down in WordPress
- WordPress Custom Post Type – Rewrite Query
- Custom post type suddenly stoped working after WordPress 5 update
- is_main_query() never called on WP 4.4
- Change post type depending on shortcode
- Redirect User From Registration Page To CPT (profile page) with custom url
- Set Default Option Value as Blank for Meta Box
- Query Posts, order by meta value
- Admin: Get all user for Custom Role
- custom post types missing ADD NEW
- Custom post type menu button color
- wp3 custom post types rss
- Drop down list with posts within the “add new” page
- Custom taxonomy not saving correctly
- How to have multiple archive pages?
- Custom post type permalink structure to include the taxonomy
- Custom Post Type Rewrite Throws Headers Sent Errors
- How can I sort the order of multiple custom field values in a custom post type?
- Extending post by email
- Trying to create a custom post type, post type box doesn’t show up?
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Custom taxonomy does not display in custom post loop
- Create if else for post types in WP_Query ‘post__in’ values
- CPT email notification including only new value custom fields
- Return multiples taxonomies with wp_get_object_terms
- Button per line in Custom Post Types
- Change display of product price on product show page only
- How to add CSS class field in Custom Taxonomy?
- CPTUI rewrite disable when no post in CPTUI has been found
- Save_post acf data not updating category of post type
- Looping to organize and display custom posts by category using PHP and WordPress
- Dupplication of Custom Post Type while adding attachment
- My post loop needs to have 8 different post templates
- Add new custom post type screen (admin area) results into 404
- Custom Post Type Pagination – not displaying posts
- Posts show up under “published” but not “all”
- Values show up in custom home page but not in custom post pages
- Permanent Custom Post Type
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- Organising custom taxonomies and custom post types
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- Change wordpress url permalink structure to show authors posts
- Parent to another Custom Post Type – Template files not being recognized
- Redirect Custom Post Type after user submits update
- Pagination for a Custom Taxonomy
- Trying to create hierarchy between 3-4 custom post types
- How do I sort post listing by child post count?
- 404 for children in hierarchical custom post type
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- Searching for a single custom post type, buddypress
- Checking for published posts in a certain post type
- Only One Post of Custom Post Type Appearing on Template Page
- Admin panel search doesn’t work for a specific custom post type
- How to rewrite custom slugs that follow my rules
- Problem with shortcode