I have a View set up that displays a play icon in a menu when a certain Custom Field is not empty. It has always worked in the past. Now when I add a new Online Class Chapter and select the Class Chapter Video from the dropdown, the play icon is not displayed.
I tested this on a staging site I set up a month or two ago, and it is working correctly.
I created a copy of my current site and put it at hidden link. I tried using theme TwentyNineteen. The problem persists. I deactivated all plugins except Toolset and the problem still persists.
hidden link
Scroll up to see the sidebar with the problem. The problem is also apparent at that anchor link (the "pipe" is missing as shown in screenshots)
You can see the URLs for the various Views also on all the screenshots.
I tried enabling back the original Astra theme and I was greeted with an error.
Unfortunately I cant proceed any further since i dont have ftp access.
However the first thing I would do is to add debug='true' to the conditional statement and check to see what values are being passed in the conditional, especially the one where the play button isn't showing up.
This will let us know exactly what the conditional is seeing from the post.
Thank you Shane!
Thank you for the information about debugging the condition. This will be very useful!!
I added the debug code to the View on the live site and took a screenshot. You can see that for the chapter above the problematic one, the condition sees the video field as filled with the post id. In the problematic one, the field seems to be empty.
I think the error message on the staging site is due to my hosting account being full (too many staging copies) so I will work on deleting those. I can always make another one.
hidden link
login: knitfree_staging
pw: W=fa{Rie_dLT
Those are the credentials to the site, not the admin. The admin credentials are the same as what I left you in the private fields before.
I tried one other thing. I deleted the post reference field "class-chapter-video" (keeping the associations), saved the group, and then re-added the field. No change. No matter what video I select for that field, the site thinks the field is empty.
Please let me know what else I should try!
Thank you.
Checking on this for you today, I was able to log in successfully. However i'm having difficulties finding the view that is listing out the content for the sidebar.
I eventually did find the view but in my checks i see that the posts that dont have the video icon are not connected to a video. Example here. hidden link
If you're able to link me directly to a post that has a video that doesn't show the icon please do.