Viewing 3 replies - 1 through 3 (of 3 total)
  • Read this , for complete tutorial

    https://codex.www.ads-software.com/Using_Permalinks

    Thread Starter lalondan

    (@lalondan)

    Hi!

    Thanks for the reply. ??

    I actually did read that in my hours of research but everything I try fails.

    Are you or anyone else here able to help me out?

    Thank you!

    Thread Starter lalondan

    (@lalondan)

    Never mind, I found it by re-reading the documentation.

    function custom_rewrite_basic() {
      add_rewrite_rule('^specialties/([^/]+)/business/([^/]*)/?', 'index.php?specialites=$matches[1]&business=$matches[2]', 'top');
      add_rewrite_rule('^specialties/([^/]+)/business/?', 'index.php?specialties=$matches[1]&post_type=business', 'top');
    }
    add_action('init', 'custom_rewrite_basic');

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalink for custom taxonomy showing custom post type items’ is closed to new replies.