You asked

If I'm taking medication, do I need to stop breastfeeding?

If you are taking medication it is highly unlikely that you will need to stop breastfeeding. When taking medication only a tiny amount shows up in the milk and is almost never harmful to your baby. If a medicine is considered unsuitable for breastfeeding women than there is usually an alternative medication available. Remember to remind your G.P. that you are breastfeeding and he will happily provide you with medication that is suitable for you and your baby.
Stopping breastfeeding for any reason can lead to your baby refusing to breastfeed and to painful engorgement of the breasts. It is far better for your little one to continue breastfeeding as the risks of bottle feeding are of greater concern. For your peace of mind here is a list of some common medications that are considered safe to take while breastfeeding; paracetemol, anti-inflammatories (such as Ibuprofen), certain anti-depressants, immunisations and local anesthesia, medications applied to the skin,nose or eyes are almost always safe, medications that are inhaled (such as medications for asthma), X-rays, CT and MRI scans do not require a mother to stop breastfeeding.
Should you need to take any medication while breastfeeding you must always consult with your G.P.

More questions

Mums understand the benefits of breastfeeding and some may be tempted by online sources if they're reluctant to breastfeed themselves or are having problems.
Babies can often be fussy in the evenings and you may find it difficult to nurse or settle them. 
Here are ways to know if your baby is getting enough milk
Breastfeeding and medication: what you need to know
What's the difference between breastmilk and formula?
Breastmilk has plenty of iron to last your baby at least the first six months of his life. 
Nipple shields are used if baby wont take the breast or for sore nipples
As of February 21st 2011 the HSE is recommending that all babies, including babies that are breastfed be given 5 micrograms of vitamin D3 a day. This is because recent studies have shown that mothers and...
Spitting up is very common and most young babies spit up at least once a day. This is because their digestive systems are immature which makes it very easy for their stomach contents to come back up their...