R
R
Raccoon Raccoons2015-12-02 13:07:16
WordPress
Raccoon Raccoons, 2015-12-02 13:07:16

How to organize category structure in WP template?

There are about 10 categories
and there are about 10 sub-categories in each of the categories.
something like this: __ www.dszn.ru/about/activities
In general, the problem is that you need to edit subcategories and categories, i.e. make edits to the layout.
if you do everything on page.php, then there are no problems, I made everything up in the admin area and you're done.
you can page-id.php ( you have to create 100 files :( )
But I want to preserve the hierarchy (I need to know what follows what so that I can install the breadcrumb plugin.)
Which direction is better to dig
?
Tell me pliz

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Chesnokov, 2015-12-03
@cesnokov

I advise you to think about your problem and completely reformulate it, for example:
- I want to make a website on Wordpress;
- the site will be a catalog of films;
- each movie will have some sorting parameters (release year, genre, country, director, etc.);
- according to the sorting options, I will make the menu (navigation) of the site;
- displaying films by any parameter (for example, by genre), you need a page of this genre with a description;
- to describe the genre, you must use a WYSIWYG editor;
Question: how to create pages for each genre and display a list of movies on them.
After reading such a plan, it becomes clear the problem and options for solving it. In this case, you don't need any category hierarchy at all (except for SEO). For example, according to this description, I immediately want to advise you to study what "custom post type" and "custom fields" are and how to use them in practice. You can start with ACF or PODs .
Well, if it's enough for you to expand the possibilities of the "description" field in the page categories, then I would install PODs and add a WYSIWYG editor to the category editing page, as written here .

E
Enot, 2015-12-02
Enotov

Here is an example:
kinogo.co/detektivy
As you can see, there are many categories and subcategories, and at the bottom there is a description of the category.
I don’t know on which engine it is, but in wordpress you can only change the description and html characters are prohibited there.
description editor is very primitive.
I need this in order to make the description of the category more colorful, I want to add graphics there.
The problem is that the design of each category will be different (somewhere I will use pictures, somewhere not ... somewhere there will be tables, but somewhere not)
In general, in short: I need to edit the HTML code of all categories
What is the best solution to apply?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question