You want the sidebar links to remain unchanged even if you're on one of the links correct?
Yes
Each book should have in the sidebar: it's author; the other books of the author; all additional book info pages; and where to buy the book. When you click on a More About This Book link, the sidebar should be the same.
What I did was to change how the view for the sidebar is being filtered. I've set it to always be filtered by the parent value. So whichever child post you're on, the view will filter based on its parent.
Below you can see my modifications. hidden link
Notice the addition of
wpvprchildof="[wpv-post-id item='@fiction_book-info.parent']"
As well as the view below i've set it to be filtered by a shortcode parameter.
I've found the issue. It appears you're nesting too many content templates which may not be necessary because it is causing the [wpv-post-id] shortcode to not get the correct id of the current page.
If you go here hidden link
You will notice that i've added the view directly to the content template rather than how you had it loading a separate content template just to load the view.
Several pages I checked looked fine. But this one hidden link has some odd text in that section. I've attached a screenshot. Not sure why this book has the issue and others don't. Very weird.
Perhaps it's a difference between Fiction books and Non-Fiction books which have different post types and content templates.
These items were left by me in testing to see what ID's are being returned. This is how I discovered that the correct ID's weren't being returned in some cases.
I've removed these now so they should no longer be displaying.
I'm not seeing any long list on the page below. hidden link
Secondly it appears that your non-fictional listings are using a separate template, again i'm unable to locate the "More About This Book" section for the page below. hidden link
Its not appearing in the content template below. hidden link
The list must have been cached so I don't see it any more.
Both fiction and non-fiction additional info pages seem to be both using Template for Additional Book Infos. And in that code it says:
[wpv-post-body view_template="tutorial-single"][/wpv-post-body]
Tutorial Single is a Content Template. Not sure what a View Template is.
I must admit that the templating structure is a bit confusing for this website with a few redundant templates.
However can you let me know if there is any other content template that would contain the text "More About This Book " other than this one below. hidden link
I did not create the original website. I do understand WordPress but not that familiar with Toolset.
Two things:
There is code in the functions.php starting at line 167 that seems to pertain to these views. I found "More About This Book" and added a character at the end. That character did show up on the front end.
Also -- When I took my initial screenshots -- the More About This Book section looked fine on Mister Owita’s Guide To Gardening but now it doesn't.
It would appear that this entire section in hardcoded. It would be quite difficult to undo all of this and implement it with Toolset similarly to how the Fiction books work.
Is there a possibility for you to get back in touch with the developer who made this site ?
As they will need to redesign this to make use of the content templates. Currently they are using this function to generate the sidebar.