Home › Forums › General Issues › Insert Page Title Within Shortcode › Reply To: Insert Page Title Within Shortcode
Hi, @markbloomfield and James.
Apologies if I didn’t explain it well enough.
So in my pages I want to use a shortcode from a WordPress plugin and the shortcode gives you the option to make each specific instance of the shortcode unique by adding ‘=”UniqueName”‘ to it. I want each instance if the shortcode to be unique. So the way I want to do this is by making the unique name of the instance of the shortcode the name of the page.
So in my template I want to have the shortcode in their but I want it to use a unique name each for each page.
Hence:
[GenericShortcodeText=”PageTitle“]
I hope this is has made things clearer.
Thanks
Jake
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.