Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi shannonwall,

    The easiest way would be to execute the shortcode within your template file.
    Take the shortcode QW gives you for a query, and run it through do_shortcode(); like so: do_shortcode( '[query id=1]' );

    Another way would be to run something like print qw_execute_query( 1 );, but I don’t recommend this, as I can’t promise that function will always exist. Whereas the shortcode will definitely remain unchanged in future versions.

    Let me know if you run into any issues,
    Jonathan

    Thread Starter shannonwall

    (@shannonwall)

    Wonderful! Thank you so much 🙂 Coming from a Drupal background with the fab Views, I’m happy to finally find something that works in a similar way and is free; much appreciated. Keep on, keeping on!

    And, with such a quick response time—love it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code for placing in template’ is closed to new replies.