A beginner developer here, working on my first project. I've been trying to find some guidance on how to create a plugin or function to create a specific shortcode.
Let's say I have two default texts prepared; in them, one %word% repeats throughout the text. When inserting the shortcode, I'd like to specify what word should replace that %word% in my default texts.
So let's say I want to insert Text No#1 at the end of my blog post. I imagine the shortcode should look something like this: [Text1 word="Name";] and this would insert the prepared Text with %word% replaced with Name throughout the text.
I hope you'll understand what I have in mind. I don't ask for code - I'd really appreciate if you'd help me to get on the right road, explanation of steps in order would be highly, highly appreciated. I have millions of questions - in what form should I save those texts? How do I start creating the custom shortcode? I plan testing on localhost environment (which I have set up), if that's okay. Thank you!