To save you the effort of going through that tree of links I gave above, here’s a more directed view:
This post most directly addresses just your particular question.
This thread is worth a look because it discusses the general notational conventions for the different types of matrix multiply.
And here’s a fun one that shows examples of how to apply the transpose in different ways when you have 1 x m vectors and what can go wrong. ![]()