• Hi everybody,
    I want to be able to set up my Categories as Menu Points so that when I then Click on them, I only see the specific Category.
    I’m trying to find something about it, but could so far.
    Is category.php the right place to place it in?
    How can I set up a loop that only shows the Category depending on the URL?

Viewing 1 replies (of 1 total)
  • Do not mess with any category.php file. It is a WordPress or theme file. If you mess with any WordPress or theme files, your changes will disappear on the next update.

    Instead, write a plugin or a child theme.

    In your PHP code you can use the function get_terms to get an array of categories.

    When I did this recently, I wrote a plugin and coded the list in a shortcode. Then I created a page and put the shortcode in the page. You can see the result here: Source index (Note that on this site the categories are renamed sources.)

Viewing 1 replies (of 1 total)

The topic ‘Sort Categories by URL’ is closed to new replies.