Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Kadence Blocks Pro: Find out if main query?

Home / Forums / Membership Forums / Kadence Blocks Pro: Find out if main query?

This topic is: Not a support question
[Not a support question]
April 7, 2020 at 12:52 am

Hi, I stumbled upon an issue that is bothering me: I would like to have excerpts displayed differently in various places, depending on the page my post grid is used. So I hooked into get_the_excerpt and thought that I could check for is_main_query(), thereby applying my filter.

I noticed that, no matter where I check for is_main_query, I always get “true” in return.

So my question ist: How can I find out that I am in a custom query (by your plugin) which is performed on page-id 15? What is the condition/query I’d have to run to find that out?

The answer can be technical, no problem with that.

Thanks,
Michael

  • The forum ‘Membership Forums’ is closed to new topics and replies.