Problem: I would like to use a conditional to test whether or not a parent post exists for the current post (child) in a specific post relationship. In the past, I had a conditional that worked well by testing the hidden custom field _wpcf_belongs_restaurants_id on the child post, but it seems this is no longer working. The custom field does not exist in the database for the child post.
Solution: After migrating post relationships, the _wpcf_belongs_{parent-post-type-slug}_id custom field value is no longer reliable for determining the parent post. Post relationships now rely on custom database tables to establish relationships, so conditionals testing the old hidden custom field are no longer valid. Instead, you can test for the post ID of the parent post in a conditional using the wpv-post-id shortcode and item="@relationship-slug.parent" syntax:
[wpv-conditional if="( '[wpv-post-id item="@relationship-slug.parent"]' ne '' )"]
parent exists
[/wpv-conditional]
Problem: I'm seeing extra space added by the Block Editor and I would like to remove it. On the front-end of the site, I see empty paragraph tags that I cannot find or delete in the editor.
Solution: Delete empty blocks or blocks that produce no content, and remove paragraph tags that are currently wrapping the post content.