The code snippet will check the number of post relations of your post. In our example, we use “feature-request” post type key, When a feature request is created or updated, the function will run and check the database for voxel post relations, so that the hidden field “total_myposttype” will get updated with the total number […]