Title: Nesting Includes
Last modified: August 18, 2016

---

# Nesting Includes

 *  [Jordan](https://wordpress.org/support/users/wolf530/)
 * (@wolf530)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/)
 * Is this possible?:
    <?php the_date(”,'<h2>’,’ – Day <?php days_since(09,28,2004);?
   > of 25</h2>’); ?> (Using: [http://wiki.wordpress.org/Day](http://wiki.wordpress.org/Day)
   Counters)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Jordan](https://wordpress.org/support/users/wolf530/)
 * (@wolf530)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/#post-95479)
 * *Bump*
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/#post-95483)
 * [http://wiki.wordpress.org/TemplateTags](http://wiki.wordpress.org/TemplateTags)
   
   these are template tags that you are supposed to use
 *  Thread Starter [Jordan](https://wordpress.org/support/users/wolf530/)
 * (@wolf530)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/#post-95487)
 * 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.
 *  [jumbo](https://wordpress.org/support/users/jumbo/)
 * (@jumbo)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/#post-95489)
 * 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?
 *  [elasticdog](https://wordpress.org/support/users/elasticdog/)
 * (@elasticdog)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/#post-95597)
 * 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.

 * 5 replies
 * 4 participants
 * Last reply from: [elasticdog](https://wordpress.org/support/users/elasticdog/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/nesting-includes/#post-95597)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
