Support » Plugin: Code Snippets » Multiple queries

  • Resolved maxcondor


    I have created three custom queries.
    But each one is effective on three different pages of the site.
    I have selected only run on site front end.
    The three queries will run on each page of my site. it’s correct?
    But isn’t it a waste of resources?

    Thanks for the attention

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge


    You’re correct, they’ll run on each page, but you can add an is_page() check at the beginning of your snippet to make sure that the difference is negligible.

    Thread Starter maxcondor


    Perfect thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple queries’ is closed to new replies.