I like to split this kind of thing to more than one conditional, as it makes it easier for me to read.
if( !( in_category( 'videos' ) || post_is_in_descendant_category( 9 ) ) ) {
if( get_the_author_meta( 'ID' ) != 3 ) {
}
}
Given, it’s a bit more code, but that’s the way it reads best to my eyes.
Related Posts:
- How can I link a CSS file only on single posts?
- Will post_exists work for draft posts?
- Category Template: Need to display different content on first page of archives
- How can I hide tags on a child-category page, if that tag has not been used?
- Conditional Tag for has post [closed]
- static landing page leading to author specific pages w/ “live” content
- why str_replace targeting pages instead just targeting post?
- Changing Post Tag Color Based On Post Count
- Conditional css for custom post type
- show div only if have a related post inside
- marking a post that was sticky on category template
- Need help with hiding an image within a post in a category
- Get the Current Page Number
- Including categories in search results
- Removing any and all inline styles from the_content()
- How to add editor’s name to entry meta byline?
- Use an attachment in multiple posts
- Pretty URL with add_query_var
- Using $wpdb to query posts with meta value containing current post_id
- Download external images if post is publish
- Query posts from current year
- Convert IPTC keywords to blog post tags
- Forcing oembeds to top of post
- Facebook sharing link is not showing a thumbnail of the images within the post?
- Can I change a post to a page by changing it’s type?
- Publish posts only after the condition is met
- How can I display a specific user’s first published post?
- custom single.php not working
- Change existing label in the admin bar with something else
- Populating a page with content from post custom fields
- Append a to every post to force additional page link (and static content)
- Limit function to specific post category
- How to show a full post, not just an excerpt
- Change Order of Admin Posts Depending on Meta
- how to programmatically change post tags
- How much of my site can I recover from public_html?
- How to get a list of all the years that have posts
- How do I use `posts_distinct` correctly?
- Getting a 404 error when clicking edit page
- How to find what index page a post is on?
- Get posts by name and taxonomy term
- Admin Posts Table Column Fitlering is not working for Custom Post Type
- WordPress REST API not returning all posts
- Get Posts that are in the current month or later
- Get Meta Key Value While Saving Post
- Displaying Latest Posts on a Page
- How can i display gallery shortcode output under Post text
- Hiding Draft Post In Admin
- How to limit posts by category
- XML-code sent via the POST method to the URL (API) [closed]
- List category posts alphabetically on archive.php
- How to list recent posts in a wp nav menu?
- Restrict edit, but allow preview for custom post status
- How to display posts via custom taxonomy terms using checkboxes?
- Get current post data into array?
- do more action after I publish a post
- Retrieve only posts from a specific user in wp-admin/edit.php
- Adding an Archive button to posts page for administrators
- Security to delete post by Admin
- why there are so many posts whoes post_type is revision? will these records waste too much database space?
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- What’s the safest way to switch and restore a post global?
- Filtering posts on Post Administration Page by Week Number instead of by Month
- Creating a WordPress Post via REST API – HTML or Markdown?
- Automatically set post_parent value
- Add code to a specific post’s content
- Add two custom fields as a default to the “new post” page.
- Give posts a particular template based on the assigned category
- Optimize CPT-function with a loop
- Post-Archive like a page in a specific subdirectory
- How to display only one category in a custom post type?
- Get only X number of categories
- latest post showing up twice on posts page
- Turn off display for custom sidebar post widget when on the post it’s displaying
- Post picker custom field on page
- Posts missing in Dashboard, but are still on blog pages
- How to order posts in WordPress by date?
- My post permalinks are redirecting to the post archive page for some reason?
- Limit Post Creation Count by Author or Role
- I’d want to exclude current post from related post
- Finding the original post date
- Hide or remove custom post status
- Add id attribute to h1 element of wordpress post
- I need some explanation on global $post [duplicate]
- Creating interactive drop down lists in a post [closed]
- Problem with wp_insert_post()
- How to control Post view count incresing in sidebar widget posts too?
- Front end post delete error confirmation and success message
- Changing a field value on submit using a PHP variable
- Randomize access to post
- Shortcode for printing post titles
- TwentyThirteen theme Posts page shows posts instead of page content
- How to check whether a post exceeds 300 words
- How can i put image to come first than the title?
- Not displaying any articles on a custom made file
- Wrap div-tag around posts in page
- Numbers of new post since the last visit of user
- Post data returning null [closed]
- WordPress Custom Post type csv exporter
- Edit Page button is gone