I guess that you should change the order to first check if there is any parent:
<?php if ( is_home() || is_page( 'overview' ) || is_page( 'about' ) ) : ?>
Home Page
<?php elseif ( $post->post_parent > 0 ): ?>
artist child
<?php elseif ( 'artists' == get_post_type() ): ?>
artist parent
<?php else : ?>
empty other pages etc
Related Posts:
- How do test if a post is a custom post type?
- Conditional for single-{post-type}.php
- is_singular() not working if called via callback function of admin-ajax.php
- functions.php conditional tag only for custom post type
- Exclude custom function content from certain pages
- Get template part based on custom taxonomy term
- If on term-page -> get the current term?
- custom post type upcoming post and past post
- changing default comment form arguments [duplicate]
- is_page_template not working as expected
- remove child post from custom post type archive
- if custom posts type exists and there are posts load script
- Need help targeting a custom post type with conditional tags
- Why would this IF statement not work? [closed]
- custom comments on specific post type
- Excluding custom post types
- Register widget only page is a singular of custom post type
- Is there a conditional tag to determine whether the post is _any_ custom post type?
- Conditional Query of Custom Post Type and custom taxonomy
- How to run filter only on custom post type edit screen
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Conditional for a Single Post That Belongs to a Category?
- How to show only the most recent post on my custom post type archive?
- Conditional Tags for specific category of custom posts
- Move Genesis Single Page/Single Post Title
- How to check if post/page or taxonomy post is published by admin
- TinyMCE Buttons on Certain Post Type
- Display message if no posts in Custom Post Type loop
- Showing taxonomy terms on custom post type
- Check if custom post is a parent?
- Redirect to URL if x number of days passed
- comments hooks on custom post type
- Conditional Statements
- If custom taxonomy else conditional [closed]
- If tag exists, then echo once
- Show specific content on parent custom post type and all children
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- How can I check the rewrite slug of current post type listing page
- How to add custom PHP code in post header?
- $_SESSION Not working after X amount of page views
- conditional based upon the count of current user’s published custom posts
- Custom metabox fields not saving when limited to a certain CPT
- Can not hook into custom post type template with: is_page() conditional?
- Diffrent search templates for different post types
- Conditional Tags If Custom Post Parent & Child?
- Custom Post Query Combined with Conditional Tags
- Conditional statement checking two conditions for CPT and Custom Taxonomy [closed]
- strange conditional tag behaviour [duplicate]
- Custom post type is_singular condtional not working when managing sidebar display
- add_image_size() for specific Post Types
- Add extra parameters after permalink?
- Creating an Image-Centric Custom Post Type?
- How do I get a post (page or CPT) ID from a title or slug?
- Getting a list of custom posts by author
- Add Custom Post Type to Current Query
- Add Post type menu to another menu
- “pagination” (but not really) and queries using custom posts types
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- Website bookmarks as a custom post type
- Multiple information using custom post type
- Customize Search Results for Custom Post Type
- RSS feed for dynamic set of custom taxonomies terms
- Related links – from other sites
- Are there sub-systems in WordPress that would employ data structures beyond CPT that a `get_posts` won’t be able to catch?
- List Post Title by Last Word Then Second Last
- Am I using the flush_rewrite_rules function in the right place?
- Query custom post type with tags
- Custom post types team data
- WordPress permalink / slug with numbers in the middle of the post name shows the broken page
- Display post as term id
- WordPress custom post type permalink rewrite shows page not found
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Displaying custom field according to date
- Extracting Address from Custom Post via Javascript for Google Maps API
- Custom Post Types — $args vs. labels array
- custom post for slider
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- Listing all post from different custom post type for the logged in user
- custom fields cannt be seen with version 3.1
- Best way to create a search for custom post type by custom field values
- Custom Content Type with No Page View
- Custom types, taxonomies and query optimization
- Query custom posts from custom taxonomy
- Problem Saving Custom Post Type Meta Values
- How can i loop through custom post type according to custom meta field?
- I’m having trouble with Related Product “tax_query” ‘terms’ value
- Display category filters for custom post type when category is shared by multiple post types
- Get all posts by many custom post types
- custom data model – link and populate from admin backend
- Page + Custom Post Type with same category
- CPT not entering jQuery ready state
- how to make custom post with “publish” default functionality not save in draft?
- wp_query return nothing
- How to add gallery support to a custom post type?
- Archive templates based on taxonomies
- Return all wordpress custom posts in specific multidimensional array
- direct custom post query interferes with other queries on page
- display custom post type from register taxonomy
- Elementor Custom Query to get Posts by ACF (Post Object Field
- Make term slugs of custom taxonomy available in WP REST API for custom post type?