We are using a Taxonomy Terms block to display an ACF custom field for a Taxonomy within a Query block (a price suffix for the duration of a subscription term).
This displays perfectly in the editor
But on the front-end nothing displays:
If we specify a fallback it is used.
Displaying standard taxonomy fields such as description works perfectly:
The Taxonomy Terms config is standard:
Step-by-step reproduction instructions:
Please write the steps needed to reproduce the bug.
Open the Post Editor
Add a Query block with front-end rendering switched on
Add a Taxonomy Terms block within the Query block that displays a custom field from a Custom Taxonomy
Believe me, I want to! We’d much rather use one of the many other ways that Cwicly allows, unfortunately we seem to be blocked at every turn on this one. Please see here for a full outline of what we have tried:
And as mentioned - this related one:
If you think that these are bugs rather than feature requests, we’ll be happy to change them and see them fixed also.
Both these feature requests are valid and will definitely be addressed in due course.
However, does your price suffix necessarily need to be implemented with a custom taxonomy?
Without a clear understanding of your current setup, it’s difficult for me to determine the best approach.
Perhaps if you could provide additional details, we might hopefully be able to find a workaround.
For now, as long as the price suffix changes when we change filters and is easily and clearly editable by our client, we will take any workaround you can provide.
The monthly / yearly toggle is currently a custom taxonomy because that seemed to be the cleanest and most logical approach.
Having a custom field on that made sense because it should change when the taxonomy term changed.
If you have a better way of doing this, we are more than willing to try it.
Given the fact that we have multiple filters (e.g. subscription duration and currency), using a standard post category as a taxonomy didn’t occur to us - I suppose we could switch the subscription duration custom taxonomy for a standard post category and then use the Post Category visibility filter for it to display the price suffix. This is not ideal for a number of reasons but as long as Post Category visibility filters work with front-end rendering, then it should technically be viable.
@Araminta, can you confirm whether this is a reasonable workaround or if you have any other better suggestions.
Perhaps it might be easier for you to add a filter to your Query, using the shortcode whitelist.
This way all the logic is done in PHP so you can directly access exactly what you need (your custom taxonomy).
If you need any help setting this up, I’ll let @Louis know!
However, if you feel more comfortable with using a standard post category as a taxonomy, then that might be the best solution.
Please don’t hesitate to let me know if you have any questions on this.
Our priority is the client editing experience and we are happy to use whatever method yields the optimal result for them.
I can see how the shortcode whitelist can work in this case, in the sense that we can access whatever fields we want via code.
The only downsides to this being the development time required and that we have been aiming to keep custom code as light as possible for ease of maintenance.
Can you please confirm whether as far as Cwicly is concerned, the post category visibility conditions currently work with front-end editing and if so, we may use this as a fast workaround.
If neither this nor any of the three other options will be available within the next week or so, then we will probably take the shortcode route.
Thank you for considering my suggestion, @StrangeTech
Apologies for not focusing on the client aspect earlier.
To answer your question, I can confirm that on my end, post category visibility conditions work as expected with frontend rendering.
However, if you experience any issues with this, please do not hesitate to reach out to us, and we will fix it as soon as possible.
If you decide to use the shortcode route, be sure to let us know if you need help!
Hi @Louis & @Araminta, you may already be fully aware, but just to give a quick update, from our testing this still doesn’t appear to be working yet, with 1.2.9.7.2.