how the magnetic field produced due to a current carrying straight conducting wire?
All the magnetic fields that are known are due to current charges (or moving charges). A current-carrying wire produces a magnetic field because inside the conductor charges are moving. This can also be verified by a simple experiment of keeping a magnetic compass near any current-carrying wire.