You could try merging the two arg arrays:
$args = array(
'post_type' => array('post','page'),
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => 'slider'
),
array(
'taxonomy' => 'my_taxonomy',
'field' => 'slug',
'terms' => 'slider'
),
),
);
Related Posts:
- The next_posts_link() works only with original $wp_query
- Displaying the category name of a custom post type
- Skipping first 3 posts in wp query
- Pagination not working on Custom Page Template
- wp query with dynamic taxonomies and terms?
- WP_Query do not load specifed number of post
- Why won’t my taxonomy query show up?
- How to get Tags with specific post id
- Using wp_list_pages() after calling query_posts()
- Display posts of specific category term
- Limiting post list by taxonomy
- How to create page with post content in it?
- Page with Category Returning 1
- Wp_query loop is not working as it should
- Is it possible to query a category with specified posts?
- My custom query is displaying random posts in random order
- how to change the permalink to a specific location?
- Multiple loops on a Search result page?
- The next_posts_link() works only with original $wp_query
- Limit amount of pages shown in pagination within wp_query
- WP_Query orderby not working with meta_value_num and menu_order
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Custom WP_Query with complex ‘post_status’ argument
- How can I sort posts by the date and a custom meta field?
- How do I get blog posts to appear within CMS?
- Multiple loops are not reset
- is there a way to show the the post title after the image?
- Should I use posts or pages in this scenario?
- recent posts for different categories
- Drag posts and pages so you can sort them in order
- Add Word Limit to Posts
- Why aren’t my posts/pages showing up in my WordPress Theme?
- How to include the latest post of a specific category on a matching page
- post categories
- Choose whether to automatically add a taxonomy with the same name as the post
- Search by post title and content in wp_query without order
- Hiding Draft Post In Admin
- Display posts from a different website on Genesis Responsive Slider
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- Blog post per page setting conflicting with custom WP_Query?
- Change post order random through out the entire WordPress
- How to exclude latest x posts from a paginated query?
- Setup a custom dynamic post
- Adding buttons to Add New Post and Add New Page
- Anyway to grab author name and featured image in an embeded in inital array of posts outside of loop?
- How to verify wp user password by sql query in wp? [closed]
- Removing noindex posts from wp_query
- WP Query – Posts Per Page not working in combination with category__in
- Help with Taxonomies
- Ajaxify This Code
- How to filter my search in post if contains a word in title, content or excerpt?
- Posts list in custom taxonomy
- How to return another post than requested
- Pausing and Resuming WP_Query results
- How to do set post permalinks using 6 digit random unique function?
- Select only post id and meta value with WP_Query
- Lost draft under all posts and drafts
- Post categories to pages
- Switch to page template when using post permalink
- Get user categories with most posts in it
- 301 (static page instead latest posts)
- Get Posts Under Custom Taxonomy
- Integrate OpenStreetMap on WordPress
- Random ajax load only works with posts_per_page set to -1
- What’s the best way to render Visual Composer in posts, not pages?
- How to : pagination in 3 different custom loops on the same page
- How to handle broken links created by permalink/slug changes?
- Display custom tags on pages that have a specific page parent
- Get Page ID of blog homepage
- How to render taxonomy in loop of custom post_type
- Static posts page with home.php
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- Second comments section for one post/page
- Exclude the first ‘n’ number of posts of a tag from home page?
- Query posts and return XML
- how to change the number of posts returned in a specific loop without making it global?
- Query Posts With Over 1000 Views
- How to allow visitors to filter posts by multiple taxonomies
- How to add tags (custom taxonomy) to post class css?
- posts_per_page option limits the number of Gallery items
- List authors with the last post title and order by last post date
- How to order posts by meta_value and title
- 404 error on default post type and default taxonomy fronted page
- Overwrite posts/pages via import
- Auto-realod with new posts // Ajax call
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Start post pagination at 0 instead of 1
- Saving custom fields to a custom taxonomy
- Hooking into the post editing screen for an existing page only
- wp_query random post
- wp_posts table: safely remove unused columns to save database storage
- Query Posts by Custom Field
- Adding a blog archive with pagination using WP_Query
- WP the_posts() on single-cars.php get category link
- how can i change WP main archives loop to sort by name or title
- How do I do a page break?
- Is there a way to specify an extra class for a post or page with no title?
- Automatically create a new page daily with last three posts
- how to get post order by post id wp_query?
- When changing pages to posts, how do you set up 301 redirects for the page URLs?