Main categories and sub categories

To begin with, the X theme template is amazing to work with, I am very satisfied with all the possibilities.

For SEO reasons and for my clients, I would like to structure my site with main categories and sub categories. This is very important and is also becoming increasingly important for Google.

I can not figure out how to do this within the X theme template, I like to hear how I can do this.

Thanks in advance!

Hi there,

Thanks for writing around! Are you looking for this? http://www.wpbeginner.com/beginners-guide/how-to-add-categories-and-subcategories-to-wordpress/

Hope this helps!

Hi there,

Thank you for your quick reply,

I know that I can create categories and sub categories in wordpress, but I want to make them in cornerstone.

What is going on is that I have already made main items and sub items with cornerstone but these are all pages and the mean and sub structure is created in the wordpress menu.

For SEO reasons, I would like to structure my site with main categories and sub categories visible for Google. This is very important and is also becoming increasingly important for Google.

Hi there,

You can use the Posts of the WordPress and Category hierarchy which is the default functionality of the WordPress.

To make sure that you can use Cornerstone to add the posts you need to go to X > Cornerstone and add the posts to the option below:

Doing that will enable the Cornerstone for posts, so you will have the Cornerstone options to create your posts and the function of Post Categories at the same time at hand.

Thank you.

Hi there,
Thank you for your suggestion, first I thought this was the solution, but your suggestion does not work.

When I, like you sugested, use Wordpress Posts I can indeed use Cornerstone but then get a standard page layout with date and not in the desired format (Blank - No container - Header - Footer)

Suppose I can create a Post with the correct layout in the desired category, then I have 3 items with the same name, such as Post name, Page name and Categorie name, how do I get the desired result, namely, to structure my site with main categories and sub categories visible for Google.

My website has already 85 pages with content of which 5 pages are main items and the rest subitems.

It would have been nice if the X theme had main categories and sub categories functions, as this important for SEO.

Thank you

Hi There,

You can turn off the Post Meta under Theme Options > Blog. What you need requires modifying the wp-single.php template, regretfully, this fall outside of the support that we can offer. I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

You can copy the file wp-single.php in your parent x theme under this directory \x\framework\views\{your-stack}, paste the copied file on your child theme in the same directory path \x-child\framework\views\{your-stack} (create it if the directory does not exist). Then open/edit file look on this line <div class="x-container max width offset"> remove the class max width and that should make your template look a no - container template.

WordPress has the Parent-Child category option (https://prnt.sc/hjm9na), it’s not something handled by themes.

Hope this helps,
Cheers!

Thanks for your quick response.

I do not have the knowledge or the skills to handle your option.

I wonder how all they thousands less skill full x themes users structure their site without a main category and sub category option?

Should this not be a default option?

Hi there,

Maybe there is a misunderstanding here. I am sure you will understand that our product is a theme and does not interfere with the category system of the WordPress. Whatever we suggested till now are the functions of the WordPress itself.

I am still not sure what you have in mind, please consider that the hierarchy of the posts and pages is something that you should be able to do without a specific theme. So I suggest that you revert back to the standard theme and not the X, then try to organize your pages or posts as you wish. You should get the same results with or without the theme.

WordPress does have only categories for posts and not pages. The pages only have the hierarchy called parenting which you can use. Here is a detailed information regarding pages in WordPress:
https://codex.wordpress.org/Pages

Thank you for your understanding.

Hi there,

There was indeed a misunderstanding as a result of my lack of knowledge, the X theme is an incredibly good and user-friendly platform, which I enjoy a lot.

Thanks for your explanation, I now understand how it works and what I have to do.

Thanks again!

You’re most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.