Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I know we’ve had people in the past find some success with https://www.ads-software.com/plugins/custom-post-type-permalinks/

    Other than that, I don’t have a great ready to copy/paste solution available. permalink customization is a detail that falls outside of the scope of what CPTUI is built to cover, truth be told.

    Thread Starter sorintata

    (@sorintata)

    I see. On a completely different note, I am mostly unsure of each option in the CPT UI panel. I tried reading the docs but I was unable to find a more detailed explanation for each option for when registering a new custom post or taxonomy.

    Can you please guide me to a tutorial/wiki where I can read more about each setting?

    Thank you, Sorin

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    We don’t have any sort of docs on that topic. However, if you have some specifics you’re interested in, I can try o answer as best possible.

    I have always relied on the following two, as well just experience. However, I suspect these are the places you’ve already looked at

    https://codex.www.ads-software.com/Function_Reference/register_post_type
    https://codex.www.ads-software.com/Function_Reference/register_taxonomy

    Thread Starter sorintata

    (@sorintata)

    Please bear in mind I am a blogger, not a programmer, so I may ask silly questions.

    For instance, what is public?
    Or querry var?
    Custom querry var string?

    Rewrite I guess it means to convert your slug into a more search engine friendly url, for example you can rewrite book_genre to be displayed as book-genre.

    But, what is rewrite with front?
    Or rewrite ierarhical?

    No idea what is rest API.

    Thread Starter sorintata

    (@sorintata)

    I grabbed the plugin you sudgested and I can say it works to a certain degree.

    I managed to get my link structure, but it has some limitations.

    For instance, if I have a book_review, that fits in the book_genre fantasy, I get the adress mywebsite.com/book_review/fantasy wich is perfect.

    But, if I have fantasy and adventure in the book_genre, then the adress is mywebsite.com/book_review/adventure which is wrong.

    Now, I found some workarounds from a creative person perspective, not from a programmer perspective.

    First, in order to be sure the permalink stays exactly as I want it to be, I can give the book only one genre and create an other taxonomy book_subgenere.

    The drawback is that if I have a subgenre “adventure” and a genre “adventure”, I guess mywebsite.com/adventure archive will not work exactly as I want. I mean, it will show either the book_genre or book_subgenre, but not book reviews from both taxonomies, right?

    Basically, the question is: can you have the same archive for two taxonomies?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    For instance, what is public?
    Or query var?
    Custom query var string?

    Public is a bit of a blanket word, but basically it means that the content from the post type is accessible by visitors to the site. The content is able to be fetched and displayed. Query var is a setting that controls how that’s done, and the custom query var string is something that helps customize that detail.

    Rewrite I guess it means to convert your slug into a more search engine friendly url, for example you can rewrite book_genre to be displayed as book-genre.

    Correct. Rewrite based stuff is how WordPress turns urls like https://www.mysite.com/?p=2 into something prettier like https://www.mysite.com/hello-world and similar. For custom post types, it’d be very much like your example. You can change how it looks in the URL, while the code would still rely on being provided “book_genre” for the actual queries.

    But, what is rewrite with front?
    Or rewrite hierarhical?

    The with front part is kind of legacy, and probably not much to worry about. I don’t fully understand its exact purpose personally, but it stems from back when WordPress was primarily just blog software.

    Not seeing anything about rewrite hierarchical.

    REST API is something that was released in to WordPress core over the past few releases, and it’s fine to leave as is. You’ll know if you need the support for it.

    The limitations from the permalink customizaion plugin are going to be something outside of our control. I can very easily see it being limited by taxonomy terms and limited to only one at a time. Hunch says it’s probably grabbing the first term it can find, and I would not be surprised if it was alphabetical. May not hurt to talk to their support to see what sort of options may be available for better customization there.

    Thread Starter sorintata

    (@sorintata)

    Ok. Thank you very much for your answers. I know I am a beginner and more of a blogger than a programmer. I just want to understand what I am using in terms of WordPress and it’s plugins.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalink structure with custom taxonomies’ is closed to new replies.