Support » Plugin: Premmerce Permalink Manager for WooCommerce » get_permalink($product->ID) returns domain/slug and not the full path

  • We use your plugin to add in the product categories in the URL. If I edit a product, I can see the correct permalink we want.

    But if I use get_permalink($product->ID) in my functions, then it returns the domain.com/slug and not the full path with categories. It does not return what the permalink is in the edit product screen.

    Is there some other function I need to call to get your permalink in my code?

    Thank

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_permalink($product->ID) returns domain/slug and not the full path’ is closed to new replies.