[ad_1]
Im looking to make a shortcode for the same text to be inserted at will into the short description. The thing is one part of it needs to get changed, so if i just save and use the shortcode its basically only what i put in there when i registered the code. How can i use something like this and keep it versatile so if i need to change one word or one part i can change it.
For example, Pay $x.xx with membership. I need to change the x.xx each time. im not sure how to accomplish this with a shortcode or if thats even the right way to go
[ad_2]
You might want to rephrase this…. I have no ide what you’re asking. Maybe give some examples of what you’re trying to achieve.
You can add argument attributes to your shortcode, so you can do something like [shortcode_name text=‘My Custom Text’ text_2=‘Another text here’].
Ask ChatGPT about shortcode attributes for WordPress.
Makes sense i need to create the function In functions.php file? Was looking to hopefully do something out of the box.