Wild badger going around the Spanish capital (8)
I believe the answer is:
belgrade
'capital' is the definition.
(capital of Serbia)
'wild badger going around the spanish' is the wordplay.
'wild' is an anagram indicator.
'going around' indicates putting letters inside.
'the spanish' becomes 'el' ('the' in Spanish).
'badger' with letters rearranged gives 'bgrade'.
'bgrade' enclosing 'el' is 'BELGRADE'.
(Other definitions for belgrade that I've seen before include "Capital city on the Danube" , "Capital of Serbia and Montenegro" , "In foreign city" , "Balkan capital" , "Foreign capital" .)