• Resolved elfigos

    (@elfigos)


    Hello, I’m using Toolset for custom post type relationships, suppose I have post type A is parent of post type B, is there any way to add the title and other terms of B to A while indexing? I know how to get B info from A id, I just want to know how to create the index for A post on relevanssi. Thanks!

    • This topic was modified 3 years, 9 months ago by elfigos.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    The key here is the relevanssi_content_to_index filter hook.

    Thread Starter elfigos

    (@elfigos)

    Thank you! Only one question, doesn’t each different content have a unique title/name?

    Plugin Author Mikko Saari

    (@msaari)

    What do you mean? No, WordPress posts don’t need to have unique titles, every post on your site can have the same title. The slugs are unique, but Relevanssi in general does not care about slugs.

    Thread Starter elfigos

    (@elfigos)

    I mean content that I index, when relevanssi index the title, does it add “Title” as its name?

    Plugin Author Mikko Saari

    (@msaari)

    When you’re adding content with relevanssi_content_to_index, Relevanssi only adds the content you want it to add. You can choose.

    For the actual post Relevanssi indexes, the title comes from the post title.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add custom term to relevanssi index’ is closed to new replies.