Problem: I would like to add an HTML iframe tag to a custom field when editing a post in a front-end Form, but the content does not seem to be saved. If I add the same code in wp-admin when editing a post, it is saved as expected.
Solution: For security purposes, Forms automatically restricts certain code. To override that security feature, you must enable iframe tags with custom code. Add the following custom code in your child theme's functions.php file:
That should cover most of the default iframe attributes for a Google Calendar embed, but you may need to adjust this code to support other non-default attributes individually.
Go to Toolset > Settings > Forms and click "Select allowed HTML tags". Choose all the tags you would like to allow Users to insert in a Form, including iframe tags.
Problem: I have two post types in a one-to-many relationship. I would like to create a custom search View of the child post type, filtering by distance based on an address field in the parent post type, and include other filters based on custom fields in the child post type.
Solution: A View of post type A cannot filter by fields in post type B, so you would have to copy the parent address field into the child posts automatically using custom code, then filter by the address field in the child post type.
Problem: I am not able to find any fields from my Repeatable Field Group (RFG) when I try to select a dynamic source for a Block.
Solution: If you want to loop over RFGs, you'll need to use a View. Some blocks are designed to work with fields that allow multiple values, but not individual fields in an RFG. The type of block you are trying to insert will determine which type of "repeating" field is allowed for dynamic sources.
Problem: I would like to use a custom field from a related post to generate a dynamic link in the child post template. The Types field shortcode for this field is not returning any value.
Solution: You can use the Types field shortcode to output information from a related post using a special syntax in the "item" attribute, like this:
Problem: I have created a custom field group and applied it to a custom post type. After migrating my site to a new host, when I edit those custom posts in wp-admin I cannot see the field group. If I open the Screen Options tab, the field group does not appear in the list of available field groups for display.
Solution: This appears to be a server-side caching issue. Resave the field group(s) in Types > Custom Fields > Post fields, flush the object cache using the 3rd-party object cache system controls, and the field group should appear as expected when editing these posts.