Thanks, yes I did migrate, will I be able to display all relationships before and after migration?
I want to be able to display all albums related to its parent artist in dynamic layout.
Example like this which was built with Toolset layout:
enlace oculto
But I now want to use the Cornerstone layout to build new layout while still using Toolset CPT and the relationship.
So how can I get a working string from http-build-query?
I was able to build same idea with ACF using a string in Cornerstone here:
enlace oculto
So should query look like this?
$query = new WP_Query(
array(
'post_type' => 'concord-albums',
'posts_per_page' => -1,
'toolset_relationships' => array(
array(
'role' => 'child',
'related_to' => get_the_ID(),
'relationship' => array( 'artist', 'concord-albums' )
),
array(
'role' => 'parent',
'related_to' => $selected_post,
'relationship' => 'artist_concord-albums'
)
),
'meta_key' => 'wpcf-genre',
'orderby' => 'meta_value',
'order' => 'ASC',
)
);
$posts = $query->posts;
Then how do I get it into a string?
Also if helpful here is the code I used with ACF to get query string made on other site.
$data=array(
'post_type' => 'releases',
'meta_key' => 'artist',
'orderby' => 'meta_value',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'artist',
'value' => '{{dc:post:id}}',
'compare' => '==',
'type' => 'NUMERIC'
)
),
);
Thanks