I have an ebook, an ebook containing several chapters, using the View, I can have a good outlook to view the chapter and pagination at the footer. I want to allow users to search the content, If I click the search result to a chapter, it can't be shown at the look of using the view. How can I force individual chapters can be viewed as the ebook?
Here is the chapter within a view hidden link ( this is my expected result )
Here is the search result to one chapter hidden link
Here is the page I click the link from the search result hidden link ( this is not my expected result )
Am I correct in thinking that you have an ebook post type, and then a chapter post type, which is a child of the ebook type?
And what you want to happen is that when visitors are reading a chapter, there is a search box to enter a text search, which should search the text from all chapters of the ebook, and not just the current chapter.
Is that correct? If you can please confirm before we think about how to implement it.
I have parent post type 'ebook' and child post type 'chapter', I custom the content template for 'ebook' including a View with pagination, it is fine to click the pagination to read the chapter one by one. I make the chapter be queryable, I search and get the chapter resuilt, when I click the result and it show chapter post all pagination lost. How can I force the result to read the chapter content like I read the ebook with pagination?
To suggest the best way to keep the chapter navigation on the single chapter pages, I'll need to see how all these elements are set up in the admin area.
Can you please share temporary admin login details, in reply to this message?
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
The regular next and previous post links won't work on the single chapter post pages, because your goal is to show only those chapter posts which are related to the same eBook.
There is a custom field 'order' to the child post, I need to query the previous and next post, I don't know what is the problem to my code, I can't get the correct order.