dml3001
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Wrap function in align and font specificationsThis code prints the date as formatted in the first line, but it seems that it does not recognize the second.
Forum: Fixing WordPress
In reply to: Wrap function in align and font specificationsIt breaks every time I put a
<?php ?>within a<?php ?>.Forum: Fixing WordPress
In reply to: Call on a variable outside of the php functionHow would I make an a href with the date at the end of the link then?
<?php $url = "http://www.hiphoplot.com/"; $date = the_date('Y/m/d/'); echo $url . $date; <a href="echo $url . $date";> ?> <div align="center"><font color=\"#FF00FF\"><?php the_date('l - F jS', '<h2>', '</h2>'); ?></font></div> </a>Forum: Fixing WordPress
In reply to: Call on a variable outside of the php functionP.S. What I tried, doesn’t work…
Forum: Fixing WordPress
In reply to: Put current date into urlWell, I’ve read the codex chapter of
the_date(), but that second link seems interesting.I am still unsure though as to how I could use
string date ( string $format [, int $timestamp = time() ] )in my a href url.I essentially want to know how to put a date at the end of
<a href="www.mysite.com/putthedatehere">Thanks for the response.
Forum: Fixing WordPress
In reply to: Use php function in urlOk. It seems I might have copied it wrong the first time. Now, it doesn’t break, but the link that shows up is a link to the home page and not a link to the home page with
/Y/m/d/at the end. If I am not explaining myself well enough, then I won’t take up any more of your time, but thank you for your help so far.Forum: Fixing WordPress
In reply to: Use php function in urlWhen you say
home_urldo you suggest that I put inwww.thenameofmypage.com/<?php the_date('Y/m/d/'); ?>as my home_url. I guess I just don’t understand at what point in your code the current date shows up. Does this( '/' )bring up the date?Forum: Fixing WordPress
In reply to: Use php function in urlYes, yes I tried the code suggested and my page broke…I don’t know why.
Forum: Fixing WordPress
In reply to: Use php function in urlSorry about that,
<a href="www.thenameofmypage.com/<?php the_date('Y/m/d/'); ?>"><My Title></a>Forum: Fixing WordPress
In reply to: Use php function in urlMy page breaks when I try to insert a link with a php function in it into the loop.
Thank you so much for your help. I’ll try to give you another example:
Lets say I have this text “My Title”. And I want the link to my title to link to the day that the post was made. Following the calendar widget setup, I would need to have my link be: http://www.thenameofmypage.com/year/month/day/
Therefore, “>My Title…but that doesn’t work so I’m not sure what to do.
Forum: Fixing WordPress
In reply to: Use php function in urlThanks for the quick response!
I apologize, I didn’t explain myself clearly enough. In the a href I would like to have part of the link be a php function. So, for example, I would like
www.myquestion.com/<?php the_date?>so that it will bring up something likewww.myquestion.com/2012/04/03.