Home › Toolset Professional Support › [Resolved] Views in sidebar inconsistent between pages
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 32 replies, has 3 voices.
Last updated by Shane 2 years, 7 months ago.
Assisted by: Shane.
This site has connections between various post types. Top level is Authors. Then authors have books. Then books have Additional Info pages (Reviews, Guides, etc). The left sidebar for the various pages has worked for several years like this:
On Book pages, the left sidebar shows the Author, the author's other books if any, the Additional Info for the book, if any and links to buy the book.
When you click on an Additional Info (i.e. Reviews), the left sidebar remains the same on that page.
Now on some books (not all) when you click on an Additional Info, the other additional info links disappear. I will upload example screenshots of one that is not working and one that is working.
Troubleshooting I have done: Cleared the toolset cache, run a repair on the database tables, cleared browser cache. I cloned the site to UpdraftPlus and deactivated all but the Toolset and Custom Sidebar plugins. None of these solved the problem.
I can make you a user login to the regular site as long as you don't make any changes. I can make you a user login to the cloned site if you want to test changes.
Example 1 of a book that is not working: hidden link. You'll see 2 links in the More About This Book section of the left sidebar. Click on either and on the following page, the other link disappears from the sidebar.
Example 2 of a book that is working: hidden link. Again 2 links but clicking on either does not change sidebar.
Hello. Thank you for contacting the Toolset support.
Basically, Toolset does not control the sidebar's added by themes until and unless you are using the Toolset integrated themes.
However, I see that you added view to sidebar to display reviews. Can you please share admin access details so I can check whats going wrong with your setup.
I see on the following post, there is no review display on left sidebar.
=> hidden link
Do you confirm that for the above post there is reviews already available to display?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.
Could you please check now: hidden link
I can see the review is displayed now.
No it’s not working. The sidebar should look like this attached screenshot even after you click one of the links. So if you click Reviews, you’ll see that Story Behind the Book disappears from the sidebar.
It seems there is a possibility that when you migrate to new relationship some connection may be lost.
Do you have backup before you migrated to new post relationship? Do you have staging site where we can see its working as expected?
If you setup a staging site with the current setup, I will try to migrate to old relationship to see if it works as expected as before and we can test if its working as expected before you migrate to new post relationship.
Did you have setup any many-to-many post relationship? if yes, with what post types you setup many to many post relationship?
From the following link:
- hidden link
*** Please make a FULL BACKUP of your database and website.***
You can rollback to your the legacy (old) post relationship from the section "Rollback after the migration of the relationship data structures". What if you try to rollback so that we will be able to know if it used to work before migrating the post relationship to new many-to-many post relationship.
Do you see it works as expected once you rollback it?
I did the rollback. It did not fix the problem and caused others. I’ve left it in the staged site and attached some screenshots.
On the Nora book — it’s not finding any of the author or book pages for purposes of the sidebar (Items not found in the screenshot). Also missing the right sidebar
On The King book == same issue with missing info when opening an Other Info page.
Hi Christine,
How was the website migrated ? It appears that the relationships as Minesh says aren't present on the staging site.
hidden link
As you see above under the relationships there aren't any attached posts to here. With this we will need to work on the live site unless the issue with the duplicate can be resolved.
Please let me know.
Thanks,
Shane
The rollback didn't work and messed things up so I deleted the clone and I'm creating a new clone. I will let you know when it is ready.
Hi Christine,
Is the clone site ready ?
I've enabled the private fields once more.
Thanks,
Shane
Hi Christine,
Thank you, I was able to log into the site.
However i'm struggling to find the view that gives the data for the More About This Book section. Based on what I see on the page, this view below should be controlling that section but i'm not seeing the heading in the view.
hidden link
Please let me know exactly where I should be looking.
Thanks,
Shane
The pages for this section are a post type called Additional Book Info. I’m attaching some screenshots that will help. The middle one show a Review page and in the right sidebar, you’ll see the content template. The first one is the bottom of that page where this Review was attached to the appropriate book. The last one if the View for Additional Book Info.
Hi Christine,
When I edited this view, none of the changes are being reflected on the frontend here.
hidden link
Only modifying this view below shows any changes in the sidebar.
hidden link
Specifically when I remove this section from the view, I can clearly see changes.
<div class="author-books-top"> <h5 style="margin-top:10px;margin-bottom:5px;padding-bottom:5px;border-bottom:1px dotted #cfcfcf;">The Books</h5> [wpv-post-body view_template="Author Books Sidebar Parent Single"] </div>
This section here also affects the More about this book section.
There is some mix up here can you confirm when you make changes to this view below it is reflected on the frontend.
hidden link
Thanks,
Shane
Here’s the content template for that sidebar. Maybe the code in it will give you a clue. I added the word “Testing” to the section title to test it and the change was made.
hidden link
Hi Christine,
Just so that I have this correctly.
You want the sidebar links to remain unchanged even if you're on one of the links correct? Or is it that when you're on the Story behind this book you want the "Story Behind this book" link to still be displayed?
Thanks,
Shane