Problem: I would like to add pagination between sibling posts in a one-to-many post relationship. The links should say "Next" and "Previous" and allow the User to easily paginate between sibling posts with the same parent post.
Solution: A custom shortcode is available to help create these links. See the links below for some code examples and customizations.
Problem:
Maps – how to make a custom term field the source for a marker?
Solution:
The thing is that there is no way to display the term field under the "Fields" dropdown.
But workaround would be to create a taxonomy view in classic mode (taxonomy view does not supported in block mode) and add the marker shortcode where we can set the term field as source of the marker.
Problem: I have created some Views that use Masonry to display a grid of posts. One of these Views displays sibling posts of the post where this View is displayed. I need to use a shortcode attribute here to pass the current post's parent post ID into the post relationship Query Filter. The Query Filter seems to work as expected because I see the correct results in the output, however, the Masonry styles are not applied as expected.
If I insert the View via the original Content Template, the Masonry styles are applied as expected, but the results are not filtered by post relationship. I need to use the wpv-view shortcode in this case so I can add a shortcode argument for the post relationship Query filter. How can I insert the View in a way that maintains the post relationship Query Filter and also displays the results in a Masonry grid?
Solution: The most practical solution in this case is to add the missing CSS grid styles manually. To find the missing styles, temporarily insert the Content Template containing the original View. Compare the two results in the browser inspector / debugger tools to find missing styles. In this case, the following styles were missing when the View is inserted using a shortcode: