Let’s look at the simple example of a eshop on WordPress.
The shop has custom post type
product and category for products
product_cat. By default product links looks like
If you read this post, you should know something about WP_Rewrite class. It allows you to change WordPress permalinks rewrite reules, change the structure of them.
In this post I won’t use WP_Rewrite, I just want to show you another way of
Step by step tutorial about creating global search in your Multisite Network.
In this tutorial I am going to talk about how to print all the terms from your multisite network using just one query. It means that we are not going to use
swith_to_blog() solution, because there is some disadvantages to it.
- When you print categories or any other custom taxonomies with the help of
get_terms()it will be tough to sort them in a desired way, and usually terms are going to be displayed separated by a site (all terms from Site 1, then all terms from Site 2 etc).
- There are going to be a lot of SQL queries – for each loop iteration at least.
I have a lot of questions from my website visitors about «My Plugins» functionality. One of these questions is about email attachments — because when you buy my plugin, you will receive it via email