Problem: I have a custom post type "downloads" and an archive at the URL /downloads. I would like to translate that archive.
Solution: You can find your WordPress Archive Blocks in WPML's Translation Management area to translate the archive text. If the post type is translatable, you must also translate the posts so they appear in the secondary language archive.
Problem: I have built a custom search View in Blocks that displays several taxonomy term checkbox filters. The results include a list of taxonomy term archive links for each post. I would like to include a counter showing the number of posts for each term in both the filters and the results.
Solution:
1. To add the post count to the filter label, adjust the Format in Field Settings for the filter block. Edit this View in the Block Editor and select the taxonomy filter block. Then you will see configurations for Field Settings in the right column. In the Format field, insert the format:
%%NAME%% (%%COUNT%%)
See the attachment filter-format.png for an example.
2. To add the post count to each taxonomy term in the View results, you'll need a bit of code because the Block Editor does not provide similar formatting options for each taxonomy term displayed in a View. You may use a Toolset Fields and Text Block to insert the following code in the HTML tab:
Replace your-taxonomy-slug in this code with the slug of the "Branchen" taxonomy. You can find the slug in Toolset > Taxonomies when you edit the taxonomy. See the attachment fields-and-text-html.png for an example in the Block Editor.
Problem: I have a Form that creates child posts. When the child post is published, I would like to send an automatic email notification to an email address specified in the parent post's custom fields, but I cannot specify that field in the notification settings.
Solution: You can use some custom PHP code with the cred_notification_recipients API and the toolset_get_related_post API to query the parent post, get the custom field value, and add that email address to the recipients list programmatically:
Problem: I have an RFG set up on my site, and I would like to import content using a CSV import tool.
Solution: You should import each row of the RFG as though it is a new post, where the post type slug is identical to the RFG slug. The column format for the CSV file is dependent upon the CSV import tool you are using, but usually must include a column for specifying a parent post title or GUID with the column header format _toolset_associations_{RFG slug}. There should also probably be columns for post title, post author, and any custom fields you want to import for each row of the RFG. See the examples provided in this ticket for more information, and refer to the documentation for your preferred CSV import tool.