Url depending on category

Support General Url depending on categoryResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38073
    acc@peron.io[email protected]
    Participant

    Hi,

    I have post type "Service". When i show services on "Service" page (Theme Builder in Elementor) my url is http://www.xxx.xxx/service/service_name i need to make url depend on service category f.ex. http://www.xxx.xxx/service/category/service_name

    I use Elementor PRO to generate template with Theme builder
    My permalink are setup to CUSTOM /%category%/%postname%/
    Of course i have category in Services attached and setup
    And also have checked "Prepended permalink structure" in Service Post Type settings (MetaBox).

    Still have url (permalink) without category. What am i doing wrong?

    #38086
    Long NguyenLong Nguyen
    Moderator

    Hi,

    To add the taxonomy/term slug to the post type URL, you to add some custom code to change the permalink structure. Please follow this topic on the WordPress support forum to get more details https://wordpress.org/support/topic/how-to-add-custom-taxonomy-in-custom-post-type-permalink/

    #38097
    acc@peron.io[email protected]
    Participant

    Is it posible to add that funcionality in MetaBox directly as option? I can't do this. It's to hard for me. I already have category and custom post. What i need to add in functions.php - try almost everything from your link and still without effect. 🙁

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