• Resolved ebhss

    (@ewood1875)


    Great job with the superb plugin.

    Would it be possible to have ‘-1234’ in the url as an option instead? I appreciate the SEO reasons why it’s added, but on small sites, like mine, it’s not needed and creates ugly urls.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ebhss

    (@ewood1875)

    With the ‘-1234’ being an example of the post ID, eg. the $post->ID in the cpth_url_link function in class-custom-post-tax-hierarchy-woocommerce-public.php

    Plugin Author Buks Saayman

    (@bukssaayman)

    Hi @ewood1875

    Thank you for the compliment and posting your question. Unfortunately the post ID at the end of the URL is part of the magic that makes this work. The URL structure can be whatever you want it to be in WordPress, but it’s making WordPress understand what you want it to do with that URL that is the tricky part.

    Becuase you could technically have a post and a category with exactly the same URL, we’ve had to add a way of differentiating between the two. For example you could have domain.com/amazing-pictures/ which could be a category, but domain.com/amazing-pictures/ could also be a single post. In WordPress they’re treated the same, but we need to know which is which. Therefore, your post will be suffixed by the unique post identifier.

    I hope this makes sense?

    Thread Starter ebhss

    (@ewood1875)

    Thank you for your quick reply, and yes it makes sense but for my site I’ve already got a unique suffix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Optional -1234?’ is closed to new replies.