Forums

[resolved] problem generating link with the_time (3 posts)

  1. datapharmer
    Member
    Posted 5 years ago #

    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!

  2. datapharmer
    Member
    Posted 5 years ago #

    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>';

  3. datapharmer
    Member
    Posted 5 years ago #

    ok... if anyone else runs into this problem use the_date instead with the echo set 0.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags