Problem: I am using a Fields and Text block to display some text, including the post slug. I have set the text-transform property for this block to be "uppercase" but the slug always displays in lowercase.
Solution: It seems that GeneratePress includes some styles for H1 elements that includes the property text-transform: none;, and you would have to override that using custom CSS. Add the CSS class tb-uppercase-override to the Fields and Text block, then add this CSS in the template, an enqueued CSS file, or in Appearance > Customize > Additional CSS:
Problem: I have two post types in a one-to-many post relationship. Artists are the parents, and Paintings are the children. In the Artists post type, I have a checkbox custom field. I would like to create a View of Artist posts that only shows Artists with related Paintings. I would also like to include any Artist where the checkbox is checked.
Solution: To accomplish this without custom code, you need 3 Views:
- #1: View of Artists, filtered by checkbox field. Use the legacy Views editor and choose the output type "List with separators". Output the Artists IDs as a comma-separated list.
- #2: View of Artists, filtered by post ID using a shortcode attribute "ids". Design the output as you would like to see on the front-end of the site.
- #3: View of Paintings with no filters. Use the legacy Views editor and choose the output type "List with separators". In the loop, include the post ID of the parent Artist post.
Insert View #2 in your template or page using a shortcode. In the ids attribute, place View #1 and View #3.
Problem: I am building a View inside a Content Template using the Block Editor. The View should show information from a related post type, but the View shows "no results found" and I cannot select related post information in dynamic sources for a Single Field Block.
Solution: Use the "View with" menu at the top of the page to select a different preview post. Select a post that has related content for best results.