Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:09:15+00:00 2026-05-31T02:09:15+00:00

There are custom posts and taxonomy in my theme (WordPress). I can add posts

  • 0

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 :

http://www.heptasarim.com/portfolio/my-portfolio.html

But I want to show the url like this :

http://www.heptasarim.com/referans/my-portfolio.html

Site : heptasarim.com

Here my custom post codes are :

    //Slider post type registration
add_action('init', 'slider_register');

function slider_register() {
    $args = array(
        'label' => __('Slideshow'),
        'singular_label' => __('Slideshow'),
        'publicly_queryable' => true,
        'query_var' => true,
        'public' => true,
        'show_ui' => true,
        'capability_type' => 'post',
        'hierarchical' => false,
        'rewrite' => true,
        'supports' => array('title', 'editor', 'thumbnail'),
        'menu_icon' => get_template_directory_uri(). '/images/admin/slideshow.png',
    );

    register_post_type('slider', $args);
}

register_taxonomy("slidercatalog", array("slider"), array("hierarchical" => true, "label" => "Catalogs", "singular_label" => "Catalog", "rewrite" => 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" => "<input type=\"checkbox\" />",
        "title" => "Slider Title",
        "catalog" => "Catalog",
        "date" => "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->ID, 'slidercatalog', '', ', ', '');
            break;
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:09:17+00:00Added an answer on May 31, 2026 at 2:09 am

    The permalink is determined by the slug, so you’d want to register it like this:

    register_taxonomy(
        "slidercatalog", 
        array("slider"), 
        array(
            "hierarchical"   => true, 
            "label"          => "Catalogs", 
            "singular_label" => "Catalog", 
            "rewrite"        => true, 
            "slug"           => "referans"
        )
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I'm working on a WordPress theme that uses a custom taxonomy to create
I'm trying to implement the following guide to my custom wordpress theme http://tomsbigbox.com/wordpress-load-more-posts-on-page-scroll/ Unfortunately
So. I created a custom WordPress taxonomy. And I have multiple posts that use
Is there a way to add some custom font on a website without using
I have the following code to build a custom taxonomy for my portfolio: add_action(
is there a way to just search pages Custom Types Posts I am currently
I know there are a bunch of posts on this topic, but I can't
This one is pretty out there, but I can't find any posts addressing it
I am building a custom wordpress theme and have a slideshow on the front
As The Title said, I tried to implement a custom taxonomy in wordpress, i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.