• Resolved seindal

    (@seindal)


    Hi,

    I’ve made a custom taxonomy to track internal links on my site. There’s a term for each post that stores incoming internal links to that page. It’s all maintained automatically, so the taxonomy is private, but visible through REST.

    The idea was to use Query Loop to show some “Related posts” based on backlinks.

    The backlink taxonomy shows up in the editor, and I can select that right term, and I see the right posts in the editor.

    When I look at the public site, I just see the most recent posts. Apparently the taxonomy search isn’t done, or doesn’t work.

    Withing the editor the backlink taxonomy search works, but on the public site it doesn’t.

    I have tried to disable all caches (page cache and redis), but no change.

    Has anybody seen anything similar?

    I’d be happy to share the code if anybody wants to see it.

    Thanks in advance,
    René

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter seindal

    (@seindal)

    Just as I posted the above, I found the problem.

    I registered the taxonomy as private = true and show_in_rest = true true. The last allows the taxonomy to be used in the editor, but not on the site.

    On the site I need to have publicly_queryable = true too.

    With the taxonomy public queryable the thing works.

    Sorry for having disturbed.

    Hi @seindal, I am happy to hear you figured this one out.

    Sorry for having disturbed.

    Not at all thank you for your question and thank you even more for sharing the solution you found, this will help other people ??

    Regards!

    Hi @seindal, I am happy to hear you figured this one out.

    Sorry for having disturbed.

    Not at all thank you for your question and thank you even more for sharing the solution you found, this will help other people ??

    Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Query Loop, custom taxonomy, works in editor, not on site’ is closed to new replies.