Forum Replies Created

  • EDIT:

    I’ve realized i’m so stupid, I didn’t know that CPT allowed you to create custom taxonomies, i’ve wasted so much time on this. I’m very sorry.

  • This worked in the end, thanks for the help! however not sure if this is exactly what I wanted, since the custom taxonomy isnt being treated as the default wordpress category, is there a way to make this happen? I guess it doesn’t have to really but the issue I have is with the permalink for each post.

    Basically I have two custom posts.

    A Service post type (it support,cloud, digital etc…)

    A service package (this appears on each service page, they DO NOT have the own unique pages)

    Basically the URL’s for the service packages should be.


    But they are currently.


    I tried using the overwrite rule, but obviously if I overwrite the slug so it contains the other post type, that post type will just become broken.

    Thanks for the help!

  • Still not working, felt like ive tried every variation.

    The backend has modified slightly, but I am still using the ACF field.

    Tried both variations nothing has worked.
    $args = array(
    ‘post_type’ => ‘service_packages’,
    // ‘meta_query’ => ‘service_category’,
    // ‘meta_value’ => ‘5’
    ‘tax_query’ => array(
    ‘taxonomy’ => ‘service_category’,
    ‘terms’ => ‘5’

    5 is the id of the category.

Viewing 3 posts - 1 through 3 (of 3 total)