How To Use Custom Fields With .mp3 Links

First you need to create that custom field and choose an apropriate name, then you can paste your link and save the post. After that, you must open your single.php file (or the file where you want the link to exist) and insert the following inside the loop: <?php //first i select which custom field … Read more

Closest post to a date

Here is some code I drafted up. It may not be using the best practices or even work for the matter of fact, as I have not tested it, but theoretically it should work. 🙂 <?php /** * Retrieve the closest post from a set time from today. * * @param integer $daysago the number … Read more

Jumbled writing under a post

Find in your CSS (on line 915 of style.css for the Twenty Ten theme): #nav-below { margin: -18px 0 0 0; } change to: #nav-below { margin: 10px 0; } What’s happening is that the #nav-below is getting pushed up into your other content due to the minus. It’s not a glitch either or relevant … Read more

Regarding Posts

for your first quetion : you can either use the excerpt() instead of the_content() in your loop, or you can use this function below : function limitcontent($limit) { $content = explode(‘ ‘, get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(” “,$content).’…’; } else { $content = implode(” “,$content); } $content = preg_replace(‘/\[.+\]/’,”, $content); $content … Read more