Can you really obtain a Wordpress Hyperlink to seem like this:


I'm able to get everything however the middle. Any ideas?

You need to create custom Web addresses in the functions.php file, such as this:


  function mytheme_flushRoutes()
    global $wp_rewrite;

  function mytheme_queryVars($vars)
    array_push($vars, 'mycustom');
    return $vars;

  function mytheme_routes($rules)
    $newrules = array();

    $newrules['([^/]+)/([^/]+)$'] = 'index.php?pagename=$matches[2]&mycustom=$matches[1]';

    return $newrules + $rules;

  add_filter('rewrite_rules_array', 'mytheme_routes');
  add_filter('query_vars', 'mytheme_queryVars');

  add_filter('query_vars', 'mytheme_flushRoutes');


Replace "mycustom" with your personal custom taxonomy.

Observe that the flushRoutes function might be used only one time, you'll be able to take it out of the init filter for any best performance.

Following this, you are able to refer to it as on the wordpress_query such as this:

global $query_string;

$mycustom = get_query_var('mycustom');


Also, you may want to produce a filter for producing the permalinks, while using publish_link filter.

It is a little complicated, but when you will need to, it's worthwhile :)

Hope it will help.