Hi, I am facing a challenge that I am not so sure how to figure this out.
I would like not to show the icon or any other item if the data doesn't exist.
I uploaded a screenshot so that you can clearly understand what I am trying to achieve. There are two kinds of prices. If we don't have one of the prices, the page still has to show the dollar sign that was previously implemented on the price.
I am also planning to add more icons with different data but the icons have to be there even though there is no content for this section.
How can I overcome this challenge to avoid this issue happening?
I would be greatly appreciate if you could guide me through this.
Hi Minesh, I couldn't complete it because I was trying to add a custom field.
I can create a custom field for the specific category but it doesn't show on the post form. I created a couple of test fields to test it. None of them were showing on the relevant post form section. Could you please take a look?
Do you have post custom field or term custom field? If you have term custom field then term custom field is not yet supported by Blocks but I'll try to offer you workaround if available but for that I will first have to review your structure and requirement.
Can you please share problem URL where you want to display content conditionally and based on what field and send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh, please check the custom field called "Field Group for Canada" and you will see a custom field created as "Pet friendly".
After creating the custom field, this field should have appeared on the custom forms section called "create housing post" to be included. So the custom fields created don't appear on the forms section that I can include. Thank you!
The thing is that the field you created with the custom field group "Field Group for Canada" this field group is set to display with the post type "Homestays":
- hidden link
Now the form you created "create housing post" is to add new post for type type "Housings":
- hidden link
Form can display the custom field is that assigned to the post type. So, in your case the custom field is assigned to the post type "Homestays", if you create the form for the post type "Homestays" you should be able to see the custom field "Pet friendly".
Hi Minesh, I got confused by the field name and should have checked the type first. That happens when we work at the late night 🙂 Thanks again. I will check the conditional fields to solve the initial request.