Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change URL of Custom Taxonomy in Wordpress?
    text
    copied!<p>There are custom posts and taxonomy in my theme (Wordpress). I can add posts belonging portfolio, services and slider category (custom taxonomy) and then the url show like this :</p> <p>www.heptasarim.com/<strong>portfolio</strong>/my-portfolio.html</p> <p>But I want to show the url like this :</p> <p>www.heptasarim.com/<strong>referans</strong>/my-portfolio.html</p> <p>Site : <a href="http://www.heptasarim.com" rel="nofollow">heptasarim.com</a></p> <p>Here my custom post codes are :</p> <pre><code> //Slider post type registration add_action('init', 'slider_register'); function slider_register() { $args = array( 'label' =&gt; __('Slideshow'), 'singular_label' =&gt; __('Slideshow'), 'publicly_queryable' =&gt; true, 'query_var' =&gt; true, 'public' =&gt; true, 'show_ui' =&gt; true, 'capability_type' =&gt; 'post', 'hierarchical' =&gt; false, 'rewrite' =&gt; true, 'supports' =&gt; array('title', 'editor', 'thumbnail'), 'menu_icon' =&gt; get_template_directory_uri(). '/images/admin/slideshow.png', ); register_post_type('slider', $args); } register_taxonomy("slidercatalog", array("slider"), array("hierarchical" =&gt; true, "label" =&gt; "Catalogs", "singular_label" =&gt; "Catalog", "rewrite" =&gt; true)); add_filter("manage_edit-slider_columns", "slider_edit_columns"); add_action("manage_posts_custom_column", "slider_custom_columns"); function slider_edit_columns($columns) { $columns = array( "cb" =&gt; "&lt;input type=\"checkbox\" /&gt;", "title" =&gt; "Slider Title", "catalog" =&gt; "Catalog", "date" =&gt; "date", ); return $columns; } function slider_custom_columns($column) { global $post; switch ($column) { case "description": the_excerpt(); break; case "catalog": echo get_the_term_list($post-&gt;ID, 'slidercatalog', '', ', ', ''); break; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload