• I just wrote a little plugin that adds support for Yoast primary categories.

    Basically, it overrides the categories layout option and brings the Yoast primary category to the top of the list (if the plugin is installed).

    I just wanted to limit the category to 1 and be confident that it would be my primary (its just alpha sorted by default).

    The code is here:

    https://gist.github.com/rtpHarry/83dff19dc35bdf168d349a80b9c60524

    It’s a very niche plugin so I thought I would just share it here as a gist in case its useful to anyone.

    (Plugin author: if you want to use this code to incorporate it into core, please go ahead)

Viewing 1 replies (of 1 total)
  • Hi @rtpharry,
    Thank you so much for your effort. We appreciate that.

    We’re working on the block version of our Post Grid, and of course, we’ll include supports for Yoast primary categories.

    Again thanks for sharing the code with us.
    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Add support for Yoast primary category (code included)’ is closed to new replies.