query - Is there any way to get all custom posts and all custom terms with it's meta in few queries?

admin2025-06-06  8

I'm developing a website with a record for me query count. It has 720 Query for the main page. I want to reduce it.

The main page structure is like this:

  • ~10 Custom Taxonomy Term
  • Each Term has a query for name, slug, cover (from the term_meta table)
  • Each Term has 3 Custom Post Type
  • Each Post from these Custom Post Type query for ~4 Meta fields and thumbnail

I tried transient cache tech, but it didn't help me in the right measure.

Can I somehow reduce query amount by making a few queries to bring all data to arrays and manipulate with data using these arrays?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749196933a317175.html

最新回复(0)