Build an organized WordPress lesson library with expandable HTML accordions. Author Jonathan David demonstrates moving lesson content from individual posts into a library page, using ChatGPT to adjust HTML, troubleshooting blurry YouTube thumbnails, and checking video playback on the live page. Learn why clearly labeled folders, reusable templates, and saved versions of your code make future edits easier as your website grows. Math Monthly and PLEM Academy promote independent problem-solving, technical communication, and professional portfolio development. Help keep these resources free and ad-free. Support the campaign: https://gofund.me/1e0eb37e6Explore Math Monthly: https://mathmonthly.com Explore nearly 1,000 ad-free lessons and podcasts: https://thestemmajor.com Parental advisory. Contains strong language, adult humor, and discussion of alcohol use and hospitalization. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit authorjond.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Alright, in this video we're going to learn how to create accordions for WordPress and HTML and organize it so that you don't have problems. I, um... Right now I have this website set up so that people click here and it goes to the individual post. However, it becomes problematic because you get so many posts it's difficult to search. It looks very similar to like YouTube and this and that, but this is a lesson library.
SPEAKER_00I need people to just go lesson 1, 2, 3, 4, 5, dot, dot, dot. So, we're going to change this. I'm going to put a subscript here, paragraph, and I'm going to write posts instead. And let me get the link here. I'm going to write posts. And then, do I want to put something else there?
SPEAKER_00What up, gangster? So the individual, I'll take individual, individual, how do you spell individual? Individual posts. All right, so I'm going to put individual posts underneath it. Let me see what it looks like. If it looks... That doesn't look terrible. So if you want the individual posts or you can click on the image. And so I'm going to organize this.
SPEAKER_00There's going to be a lot of files to do this. A lot of work. It is going to be a lot of work. So this is going to be accordion. Accordion. And this will be for STEM majors guide. Okay, so I gotta open this file here. Now I gotta do a notes file. Where's the notes at?
SPEAKER_00Texted it. Okay, so new one of these, and this will be for, just need to save the file, it doesn't really matter. I want to save it to, come on, drop down for me. What the heck? What in the world just happened?
SPEAKER_00How do we get out of that? Okay, I am going to save and under, let's get a little ahead of myself here. God, what is going on with this? It's probably because I got so much stuff running. Alright, I'll just save it and find it. ASD is quite whatever. Okay, I just need that.
SPEAKER_00There. Okay, so here's the file everything's going to go into. I'm going to organize by name first and then kind. And then I'm going to find that file I just created. Which would be, where are you?
SPEAKER_00Right there, okay, I just needed one of them. Now I'm gonna do, I'm gonna do, this one is gonna be for, this is accordion. Miscellaneous lessons. Okay, so I am going to make sure I label everything properly. I'm going to duplicate this file here.
SPEAKER_00It's my default file, so I'll just type in accordion underscore default. Okay, then this one's going to go into here. And this one will be, this will be zero, accordion, miscellaneous. Now I am going to go to ChatGPT to my accordion.
SPEAKER_00Let's see if it's in there. I've got to go further down. There it is. So I have it already trained to make an accordion based on the image that I give it. I also need the image link that I used. Okay. God, I can never spell miscellaneous right.
SPEAKER_00The STEM major's guide. Okay, so now I need this image. I don't need that image for the featured image, but... Or do I? Yeah, I can set that for the featured image for that one. Okay, and here, and then that's the image link. Okay. So it's going to make this accordion for me.
SPEAKER_00Now this is very important if you're watching this because you're a web developer. If you're in college and you're watching this, the way I'm organizing these files and these folders, You need to pay attention to that. Because if you're going to work for a company, you got to organize this stuff like you wouldn't believe. Because someday you ain't going to work there. Somebody else is going to have to navigate your stuff. And so that's something they look at before they hire you. Very important you pay attention to that. Now what happens with these accordions is there's so much HTML.
SPEAKER_00There's so much HTML in it that it will clog up WordPress if you're using the new modern version of it. All right, so here's the accordion. So now you'll be able to drop down, okay? So look how awesome it is. It's awesome. Yeah, it's really cool. AI is really cool. I agree. Not for learning math, though. You're just a pussy. Okay, name. I'm going to first name, then kind.
SPEAKER_00Okay, so now I am going to retitle. Every time I make an edit, I'm making a new note. Because if you make one little mistake in one of these little things, trying to fix it will be a nightmare. So I'm going to go down to the first, the first one here, the chapter one, and we'll retitle this to be, we'll just title this.
SPEAKER_00I'm not going to, this, I don't need that. This will be lesson one. And then, so the content's going to go here. I don't know why I wrote so much stuff there, but the title is going to go right here. And so I'm going to get my title. Now I'm going back to the post that we just made here. And I'm getting this title. I'm putting that right there. That's okay.
SPEAKER_00The font won't carry over. And then I'm going to edit this. I'm going to get this HTML code here. Edit that and put it where it needs to be. Right there. Okay. So it's also important to note that HTML code needs to be typed differently if it's going into an accordion versus
SPEAKER_00just putting it into HTML. So now I add this here. So now what you guys are going to see And let me add this to, this is a page. So I chose to do this as a page instead of a post. So now when you come to the lesson, you can open it like this. So you'll have like, so you see what happened here with the featured image? That needs to be addressed.
SPEAKER_00With ChatGPT, you messed up the featured image here. Please redo.
SPEAKER_00I need an apple. So it gave me the whole thing. Now it only gave me the YouTube part. I can have it redo the whole thing. Or I can just go to the find find it in here.
SPEAKER_00It's not written the same.
SPEAKER_00Redo it. Redo the whole thing. And make sure that the video button plays. You guys like the sound of an apple?
SPEAKER_00This is why you make a new file every time you add something. Because, well, believe me, it's going to be hard to find it. Now, there's things like compilers and all that stuff, right? I'm not a professional HTML. I'm not trying to teach professional anything here in terms of HTML. I'm just showing an everyday average person how to do this,
SPEAKER_00which is going to piss off a lot of coders. This is life, man. I went through it. I've had everything I've built destroyed, you know? So, like, it's life. Like, what are you going to do? It's... It's the classic, you don't want to put all your eggs in one basket situation.
SPEAKER_00Your education should be diversified today. I have a dream for a modern education that will allow a person to work in any field, mostly. It's an eight-year... Rather than being in high school until you're 18 or whatever... If you're savvy to STEM, you go to PLEM Academy, PLEM University, whatever.
SPEAKER_00And you spend about 10 years mastering PLEM. And so that way when you get out, you can slide into any company and not have to worry about being snuffed out. I mean, this is something that needs to be addressed in our society. Also, where the hell was I just at with that page?
SPEAKER_00It's probably getting too many windows open up here. That's not the one. Okay. So did you guys see, let me, let me point this out to you that are watching this video right now. What happened was in the individual posts here, you come to this video, you see how beautiful and clear this is worked perfectly.
SPEAKER_00Then when you go to the post I just made, it looks like this, it's still played, but the, but the image was blurry. That's because it's being tucked into an accordion, a drop-down accordion. And that coding needed to be changed, okay? Imagine going to school for this and typing all that crap up. Now, see, it messed it up again.
SPEAKER_00I have to have it retype the whole thing again. Okay, so now... Okay, accordion, wait a second, I just WordPress stem guide thread. I already trained this one, I didn't want that one. You guys remember I trained the new one.
SPEAKER_00To do it automatically in the accordion. Let's see if the new one, I forgot about that. I had this one trained already. Let's see if that one worked. Then I can get rid of this one. Okay, edit code. The preview in here doesn't work quite right, so you always got to go out here.
SPEAKER_00Okay, yeah, it's not working either. Let's get rid of... No, it doesn't really matter which one I use. No, it does. Let me get rid of this one.
SPEAKER_00I did not want to delete that. Damn it. That's what happened. That was a mistake. Can I undelete that? I'll fix it later. I just deleted the thing that was trained for my accordions. It had it perfect. It took me a while to get it that perfect, but I've still got the code. I can give it the same code, so it's not difficult to fix that.
SPEAKER_00It is now looking like this. I mean, it's really amazing that this technology can do this. It's truly incredible. Imagine what we could do if we had a million more years. We could become gods. That's how Thor's hammer was made of.
SPEAKER_00See, ChatGPT is trying to save money by less code, but then I have to spend it. It's an exchange of time. It takes me more time to hunt it down. It takes them less time to just do it. Now, redo the deal. Make sure that the HTML works in the accordion with the proper thumbnail for YouTube. Redo the one I gave you.
SPEAKER_00Once I get her programmed, she'll do it right every time.
SPEAKER_00It's getting cold. I need to go grab a jacket.
SPEAKER_00Life in hell, my friends, life in hell. Alright, now let's give it a try again. Did I put it in there?
SPEAKER_00The thumbnail is still blurry as in the picture. I think maybe because I didn't show it the picture. I think I had to show it the picture because last time... What happened was I told it to look at the picture.
SPEAKER_00That's another thing. I'm half in the older generation and half in the younger generation. I can tap into technology and intelligence.
SPEAKER_00I mean, the fact that I can make a website like this You know, this is my idea. This is how I, I've been trying to do this for years. When I ran, I ran into the issue of cosmetics, like aesthetic appeal. People don't generally want to use a website that looks like crap. And every, I have ran into every possible pro, donkey. Oh, I'm a, I'm, I'm a machine, dude. My body, I am cursed to be on this planet for a long freaking time.
SPEAKER_00I just got to experience a lot of pain before I can experience pleasure. God wanted me to be in that hospital for a reason. To look at cute butts. No, I needed to see something. It was interesting. I needed to see something. And... I also needed to think for like 48 hours without being interrupted by my dog.
SPEAKER_00So that was good. No. It was like an electrolyte deficiency from consuming too much. I drank a bunch of booze for a week and I didn't eat or drink any water basically. And I had electrolyte deficiency and my hands clenched up. I couldn't move my hands. Like my hands locked up like this.
SPEAKER_00I was pulled up to the hospital and I couldn't. Moved my hands. They had to drive my car for me. I was a paralysis from electrolyte deficiency, but it was caused by drinking for like a week. If you're going to drink alcohol, kids, drink water, eat food. Yeah.
SPEAKER_00See, this is what happened last time I was doing this. It still became blurry. Okay, so it looks good here. I must not have copied the right one in. There we go. Look at that, CB. How do you like me now? Boom, and she plays. All right, so kids, so this is how I'm organizing. I'm going to have, like, there's going to be a ton on the front page here.
SPEAKER_00I can publish. I can save this now. So let me show you how this is going to work. I want you to see how the website's going to flow. Okay. So when you come here, if you click this, then you get this and you can see the lesson like that. So the idea is like you come to college algebra,
SPEAKER_00you know, you got how to study, blah, blah, blah, this, that, college algebra, trig, pre-cal, cal-1, da-da-da-da-da-da. You'll see these little book covers. What I'm doing is each one of these individual books will actually become a physical book that you can purchase at some point. It's going to take years. I'm going to do this for a long time. But what I'm going to do is I'm going to go through these books in order at the beginning, then at the end. I'm going to treat them like a sandwich and close them in.
SPEAKER_00And that way I can help, that way those of you who are interested in math, you'll be able to experience the advanced and the basic. So I'll be bouncing you guys in between all of it. It'll be very, very methodic. It's systematic. It'll be elegant. It'll be beautiful. And so each book cover will look like this. And they'll all be lined up on the front page, the STEM Majors Guide to the University. Then there will be a section for the math journal that we're writing as well for Math Monthly.
SPEAKER_00So this part will be the STEM Majors Guide. So let me do that. But let me close out this video. On the accordion, okay? I've got the accordion good. So then when I make another addition, I'll make another page. As you saw that editing, you're gonna wanna have each individual file. So this right here will go into my STEM majors guide. I'm going to organize that by name first and then kind.
SPEAKER_00Everything will be nice and neatly organized. That way, somebody might want to buy my business someday. I'm going to want to give them an organized... Not that I'm going to sell it. If you're doing a business like this, you might get an offer. Somebody might come in and be like, Hey, we like what you're doing. We know it's going to make a billion dollars, so we'll give you a million dollars. And you're broke, so let's squeeze you.
SPEAKER_00But, you know, whatever. C++. You only need to know how to do C++ to get a job. You kids are so behind in intelligence. It's amazing that you got into college or you're even studying science. You're not going to get a job if you don't know how to do C++.
SPEAKER_00You're not going to use C++, but you're not going to get a job if you don't know how to do it. Okay, and then we'll have the Math Monthly Journal. Which, the Math Monthly Journal.
SPEAKER_00Ah! Okay, where did I click that? I'd have to change that. Columns, three. So let's now get that image.
Are high schools preparing students for the demands of college mathematics, physics, and engineering? Author Jonathan David argues that career pressure, competitive mathematics, and an emphasis on getting answers can...
Test what you can do independently before exam day with Author Jonathan David’s 3-3-3 practice exam method: three questions, three difficulty levels, three times a week. Build each practice set using one question from...
Review the mistakes from a timed Cauchy-Euler and variation of parameters attempt with Author Jonathan David. This follow-up revisits a missing factor in the forcing term, an incorrect sign, omitted solution terms, and...
Practice organizing a differential equations exam solution with Author Jonathan David using a Cauchy-Euler equation and variation of parameters. The session explores the homogeneous equation, repeated characteristic...
Set up a Microsoft Word document for typing mathematical solutions with Author Jonathan David. This demonstration covers page margins, modifying the Normal style, font sizing, paragraph alignment, and creating a custom...