Macbook Pro 2018 battery not charging dodocool 7-in-1 hub suspected
I don't fully agree with the steps outlined in the article you reference for resetting the SMC on a MacBook with the T2 security chip installed. Instead, try the following.

Resetting the SMC on a MacBook Pro with T2 chip installed


Fully shut down your MBP. 
Press and hold the power button for at least 10 seconds
Let go of the power button and wait 5 seconds
Power up your MBP again


Once you've reset the SMC see if you can charge your MBP. If it's still misbehaving, reset the SMC again but with the following steps instead:


Fully shut down your MBP. 
Press and hold the right shift key and the left option and control keys for 7 seconds before then also pressing and holding the power button (or Touch ID button) down for another 7 seconds (i.e. the keys will end up being held down for 14 seconds, the power button for 7 seconds)
Let go of all three keys and the power button
Wait 5 seconds
Power up your MBP again


Now test your MBP again. If you still can't get it charging then it's time to test your hardware with Apple Diagnostics.

Running Apple Diagnostics

Your model MBP uses Apple Diagnostics to test its hardware. You can do this as follows:


Fully shut down your MBP
Restart your MBP
Immediately press the D key and keep it down until you see the Diagnostics screen appear
Wait for Diagnostics to finish (this typically only takes a few minutes)
Once complete, one of two things will appear on the screen:


a No issues found message
a brief description of any errors found plus further instructions

If the diagnostics test does find errors, take a note of what they are


Note: If pressing and holding the D key at Step 3 doesn't work, start again at Step 1 and, at Step 3 press and hold both the OptionD keys instead. This will try and run diagnostics from the internet instead, so you will need to allow more time for it to complete. 

If after doing all of the above you still have no joy, then it's time to contact Apple directly.