I am trying to display only the Officials on the Township/City pages when they are in a relationship.
Link to a page where the issue can be seen:
Some officials, like Timothy Mounts, shouldn't be showing up on this page - hidden link
On the same note, it lists Scambler as a township for Timothy Mounts when they're not in a relationship: hidden link
A look at the backend: hidden link
The View is set up to only show Officials on the township/city pages when they are in a relationship. On the Scambler township page (linked above), it is also showing some officials from the St. Olaf township. When I check on the backend, there is no relationship. Any suggestions?
Hi, can you try the following troubleshooting steps first?
- Temporarily deactivate all plugins except Types and Views, then activate a default theme like Twenty Seventeen.
- Test again. If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns
- If any caching systems are in place on your server, temporarily disable them.
- Open the browser console when editing the Official post in wp-admin, and check to see if any errors are displayed.
- Repeat the previous test on the Township post editor page in wp-admin.
Let me know the results of these tests. If these steps do not reveal the source of the problem, I'll need to take a closer look.
Christian, thanks for the response! I've gone through conflict testing and the issue is still present.
I set up a staging site for testing. Would you like access to take a closer look?
Yes, thanks. Please provide login credentials in the private reply fields here, and I will be glad to take a look.
I don't see anything obviously wrong here. I have seen some strange caching on Flywheel sites before, so I'm curious to see if that has anything to do with it. Could you create a database dump file that I can install on my local test site? I will run some tests to see why things are behaving like this.
Okay I believe I see what's happening. Please go to Toolset > Custom Post Types and edit the Township Official Intermediary post type. The post type status is "draft", which hides the post type from the main menu in wp-admin. Change that to "publish". Find the intermediary post "Township Officials: 1289 - 7800" in the Township Official Intermediary Post Type menu, and trash it. Then empty the trash, and you can set the intermediary post type back to "draft" status.
This should disconnect St Olaf from Timothy M., and fix the issue where St. Olaf is showing in the Official page for Timothy M. Not sure exactly how that happened, but somehow the relationship wasn't registering in wp-admin even though it existed in the database.
The problem is Timothy M shouldn't be connected to Scambler. He should be connected to St. Olaf.
However, the officials listed there are the ones that seem to be having issues. I was able to delete those officials and re-add them to solve the problem. Thanks for the help!