• Resolved vladoa

    (@vladoa)


    I have a custom taxonomy, which has URLs like this: /destination/usa/hawaii/

    What I would like to achieve is to enable Gutenberg on URLs like that. That would mean, that an administrator could edit the URL and put blocks just how he would on normal posts and pages.

    Wordpress is only giving me an option to add description to the taxonomy term like with the Classic Editor. But this is not powerful enough for me. I would like to add some of my blocks.

    How can I achieve this?

    What I have tried:

    I tried creating a page with permalink /destination/ and another subpage with permalink /usa/ so that it ends up having the same URL /destination/usa/ as my taxonomy Term. I was hoping that WordPress will detect my page first and display that one because on normal pages in WordPress I have the Gutenberg Block editor. But WP still displays the Term, not the Page with the same permalink.

    Another idea I had is basically creating set of pages with the same link structure: /pages/usa/hawaii/, set them to noindex and out of the sitemap and then use .htaccess to rewrite: /destination/* => /pages/* But this seems very hacky and also can lead to confusion.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The way WordPress works is that each page request (URL) is deciphered into a database query, the data is retrieved, and then the matching theme template is loaded to display the data. So for taxonomy pages, there can be multiple matching posts to display. The theme generates the page, showing all the posts. There is no “page” to edit with the block editor.

    However, the Gutenberg team is working on Full Site Editing, which will allow you to change the layout of the blocks for all pages and save them as your own templates to use. They aren’t done writing it, so it’s not part of WP yet. You can use the Gutenberg plugin to get the latest version of the editor, but it is beta.

    You can make a child theme, and custom templates for taxonomies or even terms.
    The taxonomy description is shown by some themes, hopefully just on the first page of results.
    There is a plugin that makes the description area use the Rich Text editor TinyMCE, not the block editor), but not all themes show it. If you were to put block markup in there, you would also have to call the functions to render the blocks, somewhere.

    Thread Starter vladoa

    (@vladoa)

    Oh okay, I get it now.
    So right now it’s not possible, unless I add the block markup in TinyMCE and then call the functions to render the blocks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to enable Gutenberg Block Editor on taxonomy term pages?’ is closed to new replies.