Probably quite a simple one but I've had a search and a fiddle around but I still can't figure out how to achieve what I want.
How would I go about creating a View to show the total amount of results in a query.
For example, if there were 10 posts connected to another using relationships, I would simply want to be able to output "10".
Thank you for your help Beda, that was perfect!
Thank you for steering me towards those Shortcode reference guides, very useful for the future to stop me bugging you lot!
One more question if I may, would it be possible to do similar, but instead of display the total post count, display a total of custom fields added together from the queried posts?
No, that is not possible.
You would instead crate a Custom Field that probably would use get_post_custom_keys(), and then count that array.
However I would not suggest that, it may be expensive in terms of performance:
https://codex.wordpress.org/Function_Reference/get_post_custom_keys
It is however the one way, to create a custom ShortCode that somehow gets all the meta from a post (get_post_meta() works as well, just that one requires the field to be known, sam as our ShortCodes to display them).
If no meta_key is passed to get_post_meta() as well you get all meta of that post, but along with that as well their content.
Even more expensive than get_post_custom_keys():
https://developer.wordpress.org/reference/functions/get_post_meta/
Hi, Beda is off today. Please let me know if you need additional assistance here.
Thanks for the offer Christian, I've gone about this another way now.
Thank you for your help to Beda!