Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jordan

    (@wolf530)

    *Bump*

    https://wiki.www.ads-software.com/TemplateTags
    these are template tags that you are supposed to use

    Thread Starter Jordan

    (@wolf530)

    This is going to sound worse than I mean it, but: how does that help? I’m asking if there’s a way to nest includes, using the Day Counter plugin.

    unless you’re using an if, if/else, or if/elseif sequence, what’s the point of nesting includes? Why not just keep them separate php calls?

    One way you could possibly do this would be to set an arbitrary variable to be equal to days_since(09,28,2004); or whatever function you want, and then pass that variable as the string for the corresponding argument in the php the_date() function. So that would give you something like:
    <?php
    $since = " - Day " . days_since(09,28,2004) . " of 25</h2>";
    the_date('','<h2>', $since);
    ?>

    Although, to be honest, I’m not sure if the_date function will work with a variable as an argument. Plus, you might have to configure days_since to return a value, rather than echo it. Give it a shot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nesting Includes’ is closed to new replies.