Solution:
<?php $blocktaxonomy = wp_get_object_terms($post->ID, 'appearson');
$blocktaxonomy = $blocktaxonomy [0];
query_posts( array( 'post_type' => 'block', 'appearson' => $blocktaxonomy - >name ) );
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
Related Posts:
- How to connect different CPTs together?
- Custom post type role permissions won’t let me read
- Check if post type has term
- How to remove Filters from post admin page?
- Custom Post Types on Category Pages
- Query custom post type by custom field
- Include post id[s] into WP_Query()
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Using Offset in Custom Post Type Query
- Custom Post Type pagination – normal solutions aren’t helping
- How to let custom post type posts show in standard post archive (like in homepage)?
- remove post-name from title in custom post type
- Sort the main query in subcategories/terms?
- Getting Post ID from slug during init
- Rewrite custom post & taxonomy to share same URL path
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Paginate Custom Post Type Page
- Highlight nav menu terms
- Custom Post Types, Custom Taxonomies and Permalinks ?
- Get_post_meta() won’t return value
- Pagination Issue: Custom Post Type In Index
- Settings page above CPT page in admin section
- multiple search forms and search results
- wp parse_query not working with custom meta value
- How to create another version of the Category widget?
- Programmmatically adding a Custom Post
- How would I create a shortcode to display a custom post within a page or regular post?
- Custom Taxonomy term archive template
- Trying to add script to specific admin page is not working
- Permalink Structure CPT With Custom Taxonomy Fails
- Use post as category
- Populate Custom Fields in a Custom Post Type?
- Display post meta on edit page in admin
- Enqueueing scripts and styles multiple CPTS
- Multiple portfolios and single item in two of them (ideas?)
- Randomize Posts. Skip the first post in ascending order
- How to get the upcoming post ID from front end?
- How can I display my custom posts type in a monthly calendar view?
- Display custom post type category, while in a CPT category, then the posts beneath
- WP-ADMIN – Listing all CPT in “posts” listing
- How to have this permalink structure: post_type/postname/custom_inner_page
- Additional section in custom post type permalink
- Disable closing on metaboxes
- Static page determines as home, but it is not
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Use the same date-based permalink structure for all post types
- Display Registered Taxonomies
- categories should be available across all custom post types
- Custom Post type: Labels are not showing
- Url to archive page for custom post type
- Show list of custom posts with respective attachments?
- How to output an image or icon for selected check box in a custom post
- Display custom posts randomly in custom taxonomy archive
- Show Posts to Author Only
- WP_Query parameter conflict
- Custom shortcode works in Elementor editor but not on frontend
- How to get all posts related to particular category name on button click?
- adding custom post type “name” to single template
- CPT with its own category and tag url
- Display custom posts for each category from its custom taxonomy
- Archive Template being used instead of Category Template for Custom Post Type
- Custom Post Type not working with Capabilities
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- category.php not showing custom post types
- Custom sortable column with WPAlchemy
- How to automatically create a terms based on each post of a post type
- Using `set_transient()` when saving a custom post type
- Add html tot CPT edit screen – no metabox
- Randomizing WordPress Custom Post Type Sorting Through Them Without Page Refresh
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- How to submit the date with ajax?
- Modify category permalink to use post type slug
- Create custom post type categories
- How do I create a customised table list of a custom post type (in the admin area)?
- ACF meta_key and meta_value break loop
- Post meta is not accessible within save_post hook
- Front-end submitted post is published with admin ID as author
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- next_posts_link() always generates second page link on custom post type
- Twenty Seventeen customizer front page section: How to use CPT?
- How can i order my posts by post type?
- How to reset HTML filter input fields on CPT list page?
- Should I make a taxonomy to organize data like this?
- How to display post thumbnails from custom post type category on homepage?
- Different post types arranged on one page
- List all posts from custom post type by taxonomy
- WordPress custom field images not getting inserted into array
- the title not working from a custom post type
- What would prevent a custom role from viewing posts (both standard and custom)?
- changing post type in loop query
- Roots: Custom Post Type 404 Not Found [duplicate]
- What is the proper way implement a global $wp_rewrite?
- Add Metabox to all custom post types
- Nested loop called with shortcode duplicating the content above the main loop
- Custom Post Type Base URL
- Creating entries with image attachements within posts and managing them in a list
- How to Create a Frontend Html-list Editable in the Backend?
- Archive page – problem with pagination
- WPNavi pagination links not working on custom pages