Title: problem generating link with the_time
Last modified: August 18, 2016

---

# problem generating link with the_time

 *  Resolved [datapharmer](https://wordpress.org/support/users/datapharmer/)
 * (@datapharmer)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/problem-generating-link-with-the_time/)
 * I would like to auto-generate a new link for a multi-language blog, and I have
   gotten the links to work EXCEPT the_time always puts itself BEFORE the rest of
   the string output.
 * Here is the code I am using:
    `<?php echo '<a>post_name.'>Lee este en Español
   </a>'; ?>`
 * Here is what I get: /Year/Month/day/<the rest of the link>
 * Any suggestions on how to get the_time to go after the domain?
 * Thanks!

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

 *  Thread Starter [datapharmer](https://wordpress.org/support/users/datapharmer/)
 * (@datapharmer)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/problem-generating-link-with-the_time/#post-522492)
 * sorry… here is the code I used:
 * `<?php echo '<a href=http://www.domain.org/blog-es'.the_time('/Y/m/j/').$post-
   >post_name.'>Lee este en Español</a>';`
 *  Thread Starter [datapharmer](https://wordpress.org/support/users/datapharmer/)
 * (@datapharmer)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/problem-generating-link-with-the_time/#post-522504)
 * ok… if anyone else runs into this problem use the_date instead with the echo 
   set 0.

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

The topic ‘problem generating link with the_time’ is closed to new replies.

## Tags

 * [the_time](https://wordpress.org/support/topic-tag/the_time/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [datapharmer](https://wordpress.org/support/users/datapharmer/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/problem-generating-link-with-the_time/#post-522504)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
