Create an archive for the taxonomy

Support General Create an archive for the taxonomyResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47307
    seaj1oneseaj1one
    Participant

    Say I create the following url structure url/taxomony/term/something. That could translate to url/service-areas/london/service.

    I can list each service for London using bricks but I can seem to be able to create an archive template for service areas using the UI to list each city i.e. London.

    Is it possible to turn taxomony i.e. service areas in to an archive using Metabox. If not, is there an option to remove service-areas when I create a custom taxomony?

    #47314
    PeterPeter
    Moderator

    Hello,

    Meta Box doesn't support creating an archive page for the taxonomy or removing the taxonomy slug from the term URL.
    You can follow the WordPress template documentation to create the archive page for the taxonomy
    https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-taxonomies

    or follow the topic below to create some custom code to remove the taxonomy slug from term URL
    https://stackoverflow.com/questions/41834377/remove-custom-taxonomy-base-slug-from-archive-permalink

    #47317
    seaj1oneseaj1one
    Participant

    Hello Peter.

    I've since found a solution. I create a page with the same slug as the taxonomy and use that to simulate the archive page by creating a query on the taxonomy term.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.