Answer the question
In order to leave comments, you need to log in
How to link two post types in WordPress?
There are two types of records registered on the site:
Products and Reviews.
Each review has a meta field with the ID of the target product.
How to implement pages with the following links: site.ru/review/
- "Reviews" archive page. All reviews are loaded. site.ru/review/product_id/
- Archived reviews page. Only those reviews are loaded, whose product ID in the meta field matches the ID in the link. site.ru/review/product_id/review_slug/
- a separate page of one review.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question