Thanks for the update and glad that it works.
If I understand correctly, you'd like to extend the conditional check to also see if the current user is also the author of the shop post where the user has come from.
If that's the case, you'll need a custom shortcode, that can check for both these conditions and then return 0 or 1 accordingly.
( a custom shortcode is needed as the conditions with nested shortcode attributes would become too complex in this case )
add_shortcode('check_complex_condition', 'check_complex_condition_fn');
function check_complex_condition_fn() {
if( (isset($_GET['parent_store_id'])) && (!empty($_GET['parent_store_id'])) ) {
$current_user_id = do_shortcode("[wpv-user field='ID']");
$current_shop_author_id = do_shortcode("[wpv-post-author format='meta' meta='ID' item='".$_GET['parent_store_id']."']");
if($current_user_id == $current_shop_author_id) {
return 1;
} else {
return 0;
}
} else {
return 0;
}
}
This shortcode will return "1" only if some "parent_store_id" URL parameter value is set and the current user is also the author of the shop post and otherwise it will return "0".
The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through active theme's "functions.php" file.
Next, please also add "check_complex_condition" in the "Third-party shortcode arguments" section, at WP Admin -> Toolset -> Settings -> Front-end Content.
After that, you can use this shortcode in a condition, simply like this:
[wpv-conditional if="( '[check_complex_condition]' eq '1')"]
// The current user is the author of the store and some value is set for the "parent_store_id" URL parameter and the
[/wpv-conditional]
As for the item attribute's format "@shop-social-links.parent" or "@shop-social-links.child", it will only work when the current post's scope is either a single social-links post or a single shop post, respectively.
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/ )
But, the page "yourwebsite.com/add-social/" is none of those.