• Resolved terrimorgan

    (@terrimorgan)


    I would like to use your plugin to display a navigable list of categories (works great) with one little adjustment. I need the URL to point to /article/ instead of /category/.

    I’m using IssueM to create books which need to have hierarchical navigation. I found the one line in their plugin to enable that. So I have a defined hierarchy.

    But their list widget only displays a flat list of articles (posts), not the defined hierarchy. Unfortunately for me, their “article category” doesn’t show up at all in the WP admin list. I need to filter the articles by “book” (category) for 20-30+ articles in one book with eventually several dozen books. So not being able to filter isn’t an option. The WP category filters just fine.

    Your widget displays a hierarchy of categories — perfect solution, but it points to /category/ in the URL.

    You have an add function that is supposed to replace the taxonomy — tried putting that in my child functions file — didn’t work. Also tried the add function to support another type (not ‘page’) just to see. That didn’t work either. And, if it had, it would be a problem since I have pages that I want to use it with (and working just fine). A global change of “page” to “article” would not be the solution for me.

    I looked at the “total rewrite” function. That appeared to work — replaced everything with “text here.” Unfortunately, I couldn’t figure out what to include.

    Help?

Viewing 1 replies (of 1 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,

    If I’m understanding this correctly, it sounds like you want to use a taxonomy called article instead of the standard taxonomy category.

    To do so you may use the ‘advanced_sidebar_menu_taxonomy’ filter like so.

    add_filter( 'advanced_sidebar_menu_taxonomy', function(){
    return 'article';
    });

    Hope this helps

Viewing 1 replies (of 1 total)
  • The topic ‘Change /category/ in URL to something else’ is closed to new replies.