Forum Replies Created
-
AuthorPosts
-
Brent Wilson
ParticipantIs there any estimate on when a fix will be released for this?
July 14, 2022 at 11:22 AM in reply to: ✅How To Display Associated Custom Taxonomy Terms in Related Posts Query Loop #37002Brent Wilson
ParticipantHow would I add a vertical pipe "|" as a separator for cases where there are multiple presenter type terms?
Brent Wilson
ParticipantCan you help me figure out what condition I should be adding for the if statement?
Brent Wilson
ParticipantWhen I add the post URL using the insert field, it is the URL of the current post, not the related post. How do I get this to show the image or the URL or whatever for the related post?
Brent Wilson
ParticipantWhat about the questions in my first post above?
Brent Wilson
ParticipantAlso, what code to I need to use in MB Views to access the URL of the related post?
Brent Wilson
ParticipantSo a couple of possible ways to do this:
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.
What would you suggest?
Brent Wilson
ParticipantThat code above seems to have caused a fatal error. I'm not proficient with PHP. So can you walk me through this a bit more?
Basically, I want to use one date/time custom field, but display it in a couple of ways for posts in a query loop:
- I want to display it as l F j, Y
- I also want to display it as g:i A
May 10, 2022 at 12:31 AM in reply to: How To Get Custom Fields To Show Up In New GenerateBlocks Dynamic Functionality #35968Brent Wilson
ParticipantDoes the MB Rest API add-on automatically set
show-in-resttotruefor custom fields when the box is checked in advanced settings for a post type?When manually registering the field (along with adding it as a custom field in metabox), why does checking custom fields in supports make a difference on whether custom fields are showing up via Rest API? Should checking the box to add that support simply determine whether or not the additional "Custom Fields" panel is displayed in edit mode with the inputs for Name and Value?
Brent
Brent Wilson
ParticipantSpecifying the format in the shortcode worked for me! Thanks for your help on this!
Brent Wilson
ParticipantSo, can you explain more about how to do this to a coding beginner? How can I display data from the date/time field in two different places in a template built with the block editor?
In one place, I want to display as l, F j
In another place, I want to display as g:i A
March 5, 2022 at 2:32 AM in reply to: ✅How To Change Post Type Slug Without Losing Current Posts #34318Brent Wilson
ParticipantThanks!
-
AuthorPosts