WordPress custom breadcrumb function with custom link text and URLs

admin2025-01-07  4

How can one create a custom breadcrumb function with which I use/enter custom link text and URLs, please?

Structure on front-end:

Home > Custom Link 1 > Custom Link 2 > Custom Link 3 > Custom Text

In the back-end, when writing/publishing a post or page, there would be one short text field for the Link Text and one short text field (or selector) for the URL, respectively, like so:

[Nav 1 Link Text] [Nav 1 Link URL]

[Nav 2 Link Text] [Nav 2 Link URL]

[Nav 3 Link Text] [Nav 3 Link URL]

[Nav 4 Link Text] [Nav 4 Link URL]

[Nav 5 Link Text]

Maximum 5 Link Text & URL pairs, whereas the last pair can be left without the URL field/selector.

In my scenario, for each Post or Page that's being published, I would enter all link text by myself. As for the URLs, I would either enter them by myself or, ideally, choose a link from an existing Post or Page.

Each Link Text & URL pair is followed by a seperator. And when no Link URL is entered / chosen, the seperator is omitted.

How can this be done while using the WordPress block editor and a block theme such as twenty twenty-four, please?

Whichever WP plugin I tried, they depend on the Category / Tag / Taxonomy structure or hierarchy of the website. There was no way for me to use a custom link text and URL structure.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736253621a137.html

最新回复(0)