I want to use a Metabox shortcode to pull data into posts in a query loop. But it doesn't seem to be working properly, and I am wondering if it is because I am not specifying to pull data from the custom field for the current post.
For example, I would like to use this shortcode: [rwmb_meta id="event_start_date_time" format="l F j, Y"]. Is there something I need to add to this shortcode to specify that the data should be pulled for the current post?
1. Use a shortcode that includes the format I want the data rendered in (for example, [rwmb_meta id="event_start_date_time" format="l F j, Y"] ). The issue with this option is that I am having trouble getting the data to render on the front end of the post query loop. So I was wondering if I somehow need to include a parameter to tell the shortcode to pull data for the current post.
2. Use the post meta field ID (for example, event_start_date_time). But in this case, it renders on the front end in the format YYYY-MM-DD HH:MM. So I would need some way to pull this data in a couple different formats using post meta field IDs.