terms of taxonomy – Drupal adds 3 categories and the first category would have 7 subcategories

I'm trying to create an education website.
As I mentioned in the title, my requirements are to add 3 main categories, the first category has 7 subcategories, each subcategory has 6 subcategories.

Ex: Main Category: Courses
7 subcategories (English, French, mathematics, physics, etc …
7 subcategories for each sub-category eg for English (grammar, comprehension etc …
I do not know how to do that with taxonomy, anyone could give me a clue. Thank you

How to duplicate WooCommerce product categories?

I want to duplicate a category with its subcategories because I need dozens, the same category structure. So, how can I do that?

How to display all categories on the homepage using the extension in magento2

public function getShopCategories ()
$ objectManagerr = Magento Framework App ObjectManager :: getInstance ();
$ categoryFactory = $ objectManagerr-> create (Magento Catalog Template Resource Model Category CollectionFactory & # 39;);

$categories = $categoryFactory->create()
                ->addAttributeToFilter('is_active', 1) //only active categories

return $categories;


Layered navigation – Toolbar categories displaying an incorrect number and pagination not working

I have a problem with an active site where the toolbar displays the wrong number of products, does not change the sorting direction or the filter, nor the product when changing pagination.

You can see it here – Poultry Tuckers Butchers

It shows 1 to 33 of the 33 products whose number of filters is set to 20

If you click on page 2 at the bottom of the page, it becomes "21-53 of 33" but the displayed products remain the same.

If you choose the price "descending", again, the page refreshes but the products remain the same.

I have a development site that uses the same code base and works well, both use Magento 2.3.3

The only difference is that docroot is set to / pub / on the broadcast site and I wondered if anyone else had ever seen this happen.

Oddly, the toolbar works well in search results.

I will really appreciate your help.

8 – Type-specific fields for different categories of content types

I have a contract content type on my Drupal 8 site and would like to use the same type of content for several types of contracts.

95% of the fields are common to all types (contact information, price, etc.), but some fields are specific to one type of contract.

I was going to do it simply by having a field indicating the type of contract, and then using the modification form, and so on. to hide / deactivate the fields and define other fields if necessary.

I'm sure there is a much better way to do this. What would be the best approach here?

categories – How to disable the default category link building?

Hello, I have a problem with building links by default wordpress category. I want to display the category page with the link mywebsite.com/products/company/. And I did it, but I can also access this page at mywebsite.com/company/. And that's what I do not want, is it a default wordpress link or am I missing something? Thank you for the benefit.

plugins – WooCommerce removed all my menus, categories, themes and pages

I've installed
The WooCommerce plugin and I assumed that all my menus, categories, themes, pages … etc were deleted
the only good news is that my products have not been removed

i tried to disable it but nothing returns

how could I cancel these changes
please, everyone can help me

plugin development – How can I apply a custom discount to the total prices of each product based on their categories on the WooCommerce shopping cart and payment pages?

I code a wordpress plugin that will work on a multi-vendor commerce site. I have a list of discounts (in percentage) that applies to all products categories I have on the woocommerce website stored on a separate database with my wordpress database. And I wish to give to some members (who have a certain identifier) when validating and on the basket page these discounts depending on the products (that is to say the categories to which the products belong) they have on the basket.

In short, this identifier should work as a woocommerce coupon, but this time it was obtained and validated from an external database.

For example, product category x, y, z has respective discounts of 2%, 3% and 4% on the database. Thus, if a user adds the products a, b, c to the basket and the product belongs to the category x, b => y and c => z.

This plugin displays an input field in which the user must type his name. ID to obtain the discounts applicable to the products available on the basket, the plug-in must therefore apply a discount of 2% on the product a, of 3% on the product b and 4% on the product c and to recalculate the sub-total.

And all this happens via Ajax, I was able to exit the form, use Ajax to validate the entered ID. I need help to get the product categories in the cart or checkout in order to retrieve the discounts on these products in my database and the hook to use to apply the discount and recalculate the sub-item. total. Please, I need help, thanks in advance.

rest api – How to get all publications from the parent and child categories?

I'm trying to get all the posts in the category products. My model looks like this: /products/PARENT_CATEGORY/CHILD_CATEGORY. What I need, is all the publications of each CHILD_CATEGORY.

I try to access it via /posts?categories=28, but it does not return any message because the category identifier 28 has no message. But his child, for example, the category with an ID of 40, has some publications. Do I have to access it as /posts?categories=40,41,42...? Or is there another way to do it?

categories – Restore default pagination on archives – Delete custom limits

I am working on a website that is a custom WordPress installation running WP 5.2.4.

There are a number of categories, as follows:

  • main category (id 71)
  • autre_cat_1
  • other_cat_2
  • etc.

The publishing archives have been customized to display as follows:

When are you going to …
…everything is fine. It uses the default paging settings, displays the 10 messages per default page set in "Settings> Read" in the Admin Portal, as well as paging links at the bottom. Everything is fine.

If you look at another category, for example …
… It displays 5 messages per page, without pagination.

If you manually navigate to the following pages, for example … Domain.com/category/other_cat/page/2/
… It shows the same content as page 1.

I want to cancel all this and ask all categories to simply use the default pagination, the number of posts per page in the "Read" settings, pagination links, and so on.

That's the archive.php code (I guess all the changes will be here). I can see excerpts related to the problem here, for example. "If ($ main_id == 71)" which matches the category that is working properly. For the rest of my life, I do not know how to make all categories work the same way.

$taxo_desc = $queried_object->description;
get_header(); ?>
$perpost, 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC', 'cat' => 760, 'post_status' => 'publish' ); }else{ $banner_args = array( 'posts_per_page' => $perpost, 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC', //'category__not_in' => 760 , 'cat' => $main_id, 'post_status' => 'publish' ); } $banner_query = new WP_Query($banner_args); if ($banner_query) { ?>

Read More'; ?>
have_posts()) { $banner_query->the_post(); $blog_title_post = get_the_title(); $blog_details_url = get_permalink(); $blog_content = strip_tags(get_the_content()); $news_image_url_sep = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); if ($news_image_url_sep) { $news_img_url = aq_resize($news_image_url_sep(0), 150, 150, true, false, true); } $news_image_url = $news_image_url_sep ? $news_img_url(0) : 'https://placeholdit.imgix.net/~text?txtsize=20&txt='.$blog_title_post.'&w=150&h=150'; if($blog_content) { $blog_filter_cont = substr($blog_content ,0,250 ) . "..."; } ?>

Read More'; ?>

Thank you in advance for help.