This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Searching page contents #41939
    tedl00tedl00
    Participant

    ok. Thanks again.

    — ted

    in reply to: Searching page contents #41926
    tedl00tedl00
    Participant

    Hi 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_shortcodes

    It 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

    in reply to: Searching page contents #41894
    tedl00tedl00
    Participant

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)