These 3 code snippets all produce exactly the same result on the front end:
The code enables you to display the value of all custom fields in 1 line. There’s no need to use CSS for this solution as it can all be done using PHP code. You can also use the 3rd example to style each value differently.
The 4th example creates a shortcode you can use in the WordPress editor or anywhere that shortcodes can be parsed like a text widget.
The code examples include solutions which work in any WordPress theme & solutions which only work in Genesis child themes.
Here’s the code:
Leave a Reply
You must be logged in to post a comment.