• Resolved datapharmer

    (@datapharmer)


    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

    (@datapharmer)

    sorry… here is the code I used:

    <?php echo '<a href=https://www.domain.org/blog-es'.the_time('/Y/m/j/').$post->post_name.'>Lee este en Espa?ol</a>';

    Thread Starter datapharmer

    (@datapharmer)

    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.