Help Desk

Integration with WP templates

  • Posts: 15 Topics: 3
    | Permalink

    Can you explain exactly how TEC chooses it’s location on the page? Is it based on presence of the_content() ? I’ve got a template where I want to run a separate wp_query loop before the calendar, so I’d like a little detail. Thank!

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Hi Mike. Thanks for the note. I spoke with our developer on this today, and it looks like yes, it is indeed based on presence of the_content(). It also overrides the_title().

    That help? Let me know if not.

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Oh, and if that doesn’t work, you can make a custom template and change the display to ECP Default Template
    which will take over the whole page instead of the the_content().

    Posts: 15 Topics: 3
    | Permalink

    That helped a great deal. What I learned, after some tinkering, is that I can’t use query_posts() if I want to run a loop on the same page as TEC. So, my work around was to use get_posts (). Worked like charm. Here’s the reference if anyone wants it.

    http://codex.wordpress.org/Function_Reference/get_posts

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Excellent to hear! Thanks for confirming, Mike. That will definitely come in handy for other users who have related questions down the road.