Forum Replies Created
-
AuthorPosts
-
tedl00
Participantok. Thanks again.
— ted
tedl00
ParticipantHi Ernest,
I think that you nailed it.I needed to use both the primary and secondary description fields to show context for both pages and posts.
Primary -> content
Secondary -> ct_builder_shortcodesIt also appears to be necessary to use the index search rather than regular search. The regular search seems to miss things.
Finally, the pages have to be published to be searched. I knew that but, one of the pages had been left in the “Pending Review” state and of course it did not show up in my searches.
Thanks for all your help.
— ted
tedl00
ParticipantHi Ernest,
Thanks for getting back to me. The index table engine did not solve the problem. After much Google searching I discovered that Oxygen Builder was causing the problem. Oxygen-built pages put the info in a custom field. Once I added the custom field ct_builder_shortcodes the search results for pages began to appear. Yeah.One remaining issue though. I like using the feature where the search results show the keyword in context of the page/post contents. This works fine for posts, but for pages no context is displayed. It finds the pages, but does not show context.
A less desirable, but still useful output would be to show the defined excerpts for posts and pages. Pages do not usually have excerpts but they can be enabled. Unfortunately the search results only display excerpts for posts.
I am using the Oxygen EasyPost block to display the search results. This block calls the PHP “the_excerpt()” function to get the text. It does not appear that this gets any results for pages.
Any help will be appreciated.
— ted
-
AuthorPosts