Hi Everyone. Please bear with me, as I’m not 100% sure what I need…
I am using a class within a custom plugin to provide a custom post type. As part of the post type there are five meta keys for storing an address (e.g. building, street, city, state, zip).
To keep the loop as simple as possible, I want to offer an easy way to return the whole address as a single string.
At the moment I have achieved this by adding a shortcode to the custom post type and calling it from wihtin the loop via do_shortcode.
Can anyone suggest a better/simplier way to achieve the same result?
- The topic ‘An Alternative To do_shortcode’ is closed to new replies.