I want to allow users to select parent posts in a many-to-many (M2M) relationship directly within a post form.
Solution:
In Toolset, managing many-to-many (M2M) relationships typically requires a separate Relationship Form. This is because post forms are designed to edit the main content, taxonomies, and custom fields of a post, while relationship management is handled separately.
Steps to Use a Relationship Form for M2M:
- Create a Relationship Form to manage the connections between posts.
- Display the form on the front end where users can connect or disconnect related posts.
The Toolset image block using the "Shadow 1" frame within a View is displaying excessive padding between the image and the drop shadow. This issue arose after recent updates to WordPress and Toolset Blocks, despite no changes being made to the site’s code.
Solution:
The issue is caused by conflicting CSS. Add the following CSS code to your site to resolve the problem:
.wp-block-image .tb-image-shadow-1 a {
display: block;
}
- Navigate to your WordPress Dashboard.
- Go to Appearance > Customize > Additional CSS.
- Paste the CSS code above into the provided box.
- Save and refresh your site to confirm the fix.