Match Game: The 1970s version frequently had fill-in-the-blank statements that encouraged answering with synonyms for urinate and defecate (e.g., "The Burbank Fire Department doesn't have a hose, so when they get called out to a fire, they stand in line and *blank* on it!").
Series/Scrabble: In this game where contestants won cash prizes for completing fill-in-the-blank word puzzles, the classic Freudian Slip incident happened when a contestant drew two P's and slipped out "Chuck (Woolery), I guess I'll have to take a P." The audience immediately roared with laughter – since the meaning could be, "I guess I'll have to take a pee!" – as Chuck tried to compose himself in disbelief. The clip has frequently aired on Dick Clark's Bloopers specials.
Some contestants on Wheel of Fortune have accidentally said "I'll take a P." when calling letters. Most notably, Pat Sajak himself did this when playing against Vanna on the April Fools' Day special.
During one Fast Money on Family Feud, Ray Combs asked "Name something that your dog does." The first contestant said "Pee" which got two points and the second said "Poops" which got three.
The 2 Broke Girls episode "And the Hold-Up" has two characters get so afraid they wet themselves in public. After Caroline wets herself in the first one, the other characters tease her, until it's finally lampshaded:
Max: I don't think there are any more jokes we can make about it. Sophie: Hey Caroline, what's that movie you're going to see rated? PP-13?
The sketches on TGS seem to involve farts quite a bit.
Carol: There's this one Fart Doctor sketch where Fart Doctor’s trying to figure out who farted in the spelling bee. Liz: He who spelt it, dealt it. I wrote that! I wrote all the Fart Doctors!
One episode was set at the start of summer break - Liz finds the writing staff all staying in the office, immersed in a very competitive computer game with no one wanting to leave. Lutz proudly announces he's wearing a diaper. And since that wasn't disgusting enough, he then pulls a strained expression.
Liz: What are you— Lutz:Don't look at me! Liz: Gah!
All in the Family: The debut episode featured Archie flushing a toilet, which later became a Running Gag for the show. This was cited as the earliest incident where a character performed that action on a TV show.
Beakman's World had quite a few fart jokes in its last season...but saved its segment on flatulence for the very last show. (Hey, you can't cancel us twice, right? Well...)
The nerds of The Big Bang Theory have a bit of a field day with this when Howard designs a toilet for the International Space Station. Even Sheldon is amused, in his own way.
Sheldon: It would seem that there is no law of diminishing returns on toilet humor.
Black Books had an entire episode built around one. Bernard spends much of the episode trying to figure out why one his friends were snubbing him after a dinner party. Eventually, after searching through his alcohol drenched memories of the night before, figures it out.
Erin: I thought we were going to keep it in the family, not bring in any more cops. Frank: He's not a cop, Cliff's a former marine. He served with Danny in Fallujah. Danny: Cliff was the surveillance ears tracking Saddam Hussein in Baghdad. Believe me, Saddam farted, Cliff could tell you what kind of kebab he had for lunch. Cliff: Goat was a deep bass, poultry a more squeaky treble. Erin Nice. And that's qualifications for-? Frank: Sit.
Dick & Dom in da Bungalow, being for kids, has a heck of a lot of this sort of humour. They would play in live farty sound effects whenever it seemed appropriate, and then there was the turtle's head puppet that lived in the toilet and told bad jokes, and so very much on.
"Aliens of London"/"World War Three": The technology that allows Raxacoricofallapatorians to pass as humans requires periodic emission of malodorous gas to function properly. This is disguised in exactly the manner one would expect.
The Doctor: Excuse me, do you mind not farting while I'm saving the world?
"Love & Monsters": Bliss, after being absorbed by Victor Kennedy/the Abzorbaloff, winds up with her face on his arse. We don't actually see her face afterwards, because as she tells Elton, he really doesn't want to know.
"The Shakespeare Code": Martha almost gets hit with the contents of a chamber pot, being thrown out a window. It was 1599...
The Doctor: Somewhere.. before the invention of the toilet!
"The Pilot": Bill goes to use the toilet, but gets advised by Nardole to "give it a minute", presumably since he (or possibly the Doctor...) just used it.
The episode "Drew Blows His Promotion" of The Drew Carey Show actually uses this trope very cleverly. Drew's friend Kate, as a birthday prank, makes a copy of a safety video which Drew filmed and adds fart noises to it, making him appear as a Gasshole. Unfortunately, the tapes get switched, and Kate shows a boring office safety video to Drew's friends while Drew ends up presenting the altered copy to the Board of Directors...
Farscape takes toilet humour and runs with it, especially with regard to Rigel's digestive system which has at various points produced exploding poop, toxic farts, and incendiary urine.
John/Rygel: I just peed in the maintenance bay!
Not even Firefly avoids it, with Simon stepping in bull crap.
Full House: In the seventh-season episode "High Anxiety", Jesse, struggling to decide on details for the reopening of the Smash Club, tells the caller inquiring about toilet to "send something over". Just his luck, he should have specifically requested for "a catalogue", because the company he tries to order toilet seat from does send something over — a large collection of toilet samples. Jokes with this trope in mind abound.
D.J.: Good luck, uncle Jesse, and, uh, don't forget to put the seat down. Joey:[upon seeing Jesse sitting on one of the toilet samples] Oh, I'll come back later. Rebecca: Jess? [then sees Jesse on a toilet seat] Don't get up.
Game of Thrones: In the Season 6 episode "Battle of the Bastards" Tormund Giantsbane and Ser Davos, two veteran warriors from different cultures forced into an unlikely alliance, discuss what they do on the night before a battle. Tormund says he drinks himself to sleep, and offers some sour goats' milk to Davos, saying it is superior to the wine preferred by Davos's people. Davos declines and explains that, the night before a battle, he is usually unable to sleep, so
I walk and think, and then I walk and think some more, and then I walk some more until I am far enough away that no one can see me shitting my guts out.
In Episode 1 of Good Omens (2019), Aziraphale and Crowley get drunk arguing about averting the Apocalypse. They then "sober up", by making strained expressions,(Tennant sells it, leaning forward, hands below the frame) while the wine bottles are seen steadily and simultaneously, filling up with wine...
In Harry Enfield and Chums, Wayne is watching a Show Within a Show that consists entirely of someone reciting "Willy. Bottom. Dirty pants. Women's dirty pants." Wayne laughs uproariously at each one. (And specifically identifies the show as contemporary comedy series Hale and Pace.)
Horrible Histories has some of this, usually based on gross but real things from history. Some examples are "World War One Wee-Wee," a sketch about how soldiers had to use pee to wash things or to enhance the effectiveness of gas masks; and a sketch where Georgian noblewomen have a Potty Emergency because first, they're wearing dozens of petticoats and second, the Queen hasn't given them permission to go pee. The show also depicts Martin Luther's habit of writing letters and holding conversations from the toilet.
How I Met Your Mother had an episode where Marshall's son is constipated and they use the word "confetti" to mean poop, for Ted's sake. Through the magic of Narrative Profanity Filter, the result of a very messy diaper change is shown onscreen by having Marshall covered in confetti.
The Singaporean weekly talk show It's A Small World, normally about the discussion of cultural differences with its multinational panel, steers unavoidably into this direction when the subject of unique toilets all over the world is brought up. Considering how the Singaporean media authority has always kept a really close look at all its TV, they got away with a LOT.
Douglas: About 20 years ago, we were shooting in this countryside area, and they built this little hut on a platform over the water... from a distance we can see everything being 'released' and dropping out the bottom... (starts making assorted dropping and plopping noises) Mark: Were you shooting a war movie?
iCarly: The episode "iWant My Website Back" begins with Carly and Sam doing an iCarly segment where they cook chicken soup in a toilet.
It's Always Sunny in Philadelphia has an entire Toilet Episode in "Who Pooped the Bed?", crossed with a parody of a detective show, featuring evidence tampering and fecal forgery. Why this? As the eventual culprit says: "Because poop is funny."
Merlin (2008) did it when Merlin let loose a goblin that did a lot of nasty and embarrasing things around the castle. One of them was Morgana, Gwen and especially Uther, farting loudly.
Mimpi Metropolitan: Episode 33 plays farting for laughs several times, namely when Pipin farts twice because she has a cold to Mami Bibir's disgust and Prima farts right as he is embracing Bambang and Alan.
Another episode has the passenger of an airline bursting in to the cockpit, mistaking it for the toilet ("Are you going to be in there all day?! Other people have to go too, y'know!!")
"The Most Awful Family In Britain Competition" featured the father (played by Terry Jones) eating a plate of beans while sitting on a toilet with his pants down, occasionally waving a newspaper behind him.
A Terry Gilliam animated link showed a woman excusing herself from a fashionable party. Making her way to a door, she goes inside and triggers some thirty seconds of loud fart noises and masculine grunting.
One unaired MythBusters episode featured "Facts About Flatulence," where they tested myths about farting, such as "is it possible to light a fart?"Hilarity Ensues when they have to answer the age old question "do pretty girls fart?" and, in the name of science, try to catch Kari letting one rip. Other portions of the episode did make it to air, just with every instance of the word 'fart' censored, and the narrator using a string of euphemisms.
It was aired in Australia. That's just how we roll. (And eventually in the U.S. as well.)
The episode testing the aphorism that you can't polish poo did air in the U.S., albeit with a record-setting series of bleeps.
In NCIS Abby Sciutto's stuffed hippopotamus, which farts when squeezed.
Nicky, Ricky, Dicky, and Dawn: The episode "Poo Dunnit" centered around who didn't flush after going to the bathroom. Complete with many euphemisms about poop.
In "A Space Quadyssey", Ricky wass first given the nickname number 2, which everyone, especially the Kramden Quads, joked meant he was poop. Later, Ricky tried to give himself a new nickname of Bee Master. It was then shortened to BM, which is also a slang for Bowel Movement.
Not the Nine O'Clock News used this a few times, such as having a short segment in which a group of people are lining up outside a phone booth in order to use it as a urinal, or when a punk with a pair of Zipperiffic trousers struggles to figure out which one is used as the fly. One sketch was a literal example of toilet humour, with a customer in a hardware store designing a bathroom insisting on having as many toilets as possible installed in the room.
During an episode of Reba, Van senses something smells odd while Reba and Lori Ann discuss the concept of Speed Dating and an upcoming event for it. One whiff at Elizabeth's direction is enough for him to decide that it's time to change her diaper.
If you see Winston Rothschild of Rothschild's Sewage and Septic Sucking Services on The Red Green Show, then Toilet Humor will be imminent. One Running Gag was a cutaway of him reciting a slogan for his company, such as "We put the P.U. in 'pump'" or "If your nose is stinging, our phone should be ringing."
Round the Twist is a kids show with copious amounts of this, including urinating contests and all sorts of other gross bodily-function based comedy.
Even Seinfeld used this, most often with pee. One episode had a plot that involved George being banned from a local gym for getting caught peeing in the shower. Another episode featured a Potty Emergency with Jerry, resulting in him getting a ticket for public urination. In one episode, Kramer was supposed to be taking Susan's parents on a ride in a horse drawn carriage, but since the horses were gassy, they had to stop the ride early because they couldn't stand the smell. One episode also had a plot involving Jerry refusing to eat at a restaurant because he caught the chef using the bathroom without washing his hands. In the episode, "The Couch," Poppie pees on Jerry's couch.
Poop was used a few times as well, most often with George. In the episode, "The Boyfriend Part 1", George was obviously going to poop in Jerry's bathroom at the end, as his pants are down around his ankles when he comes flying out of the bathroom and is carrying a newspaper. George is also shown to have a fascination with the word manure multiple times. One episode features George getting a handicap toilet and falling in love with sitting on it, saying he feels like a gargoyle sitting on the toilet.
On The X-Files, Mulder makes several jokes about farts or haemorrhoids.
The Young Ones handled this trope proudly and creatively, some choice scenes involving a golf ball being hit into a toilet (while someone's on it), a 'just follow your nose' joke, Vyvyan blowing up the house with a massive fart, and Rik trying to kill himself with laxatives.
At one point, the toilet itself spoke up and made a joke.