This blog site is not meant to be any information that is distributed to the general public. It is to serve as shared documentation between the DNSTC developers; however, if you find something useful and would like to use it, go right ahead.

Saturday, March 12, 2011

Getting the Word our Using Word

Not only can DNS Technology Consultants, Inc. develop custom www solutions for you, but we have the expertise to help you with making computers work for you and you not work from computers.

Have you ever been in a situation where you want to get something out to everyone, you have to type up a draft... copy/paste it to e-mail, Facebook, send it to your webmaster, post it to Twitter, before you know it, the phone rings and you forget where you were with your announcement.

How would you like to sit at your desktop using MS Word and simply open up a new document, type in some information, click a button… and that new information will go to; your website, your FaceBook Page, and your Twitter account all at the same time?

We can make it happen, contact us today for details; btw… this is exactly how this post was made.

Add a day, a week, 2 weeks, a month or multiple days to any date

Use the following to add time to the current date.

$date = date("Y-m-d");// current date
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 day");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 week");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +2 week");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 month");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +30 days");

Thursday, March 10, 2011

Removing the Continue Reading From the RSS feed in the TwentyTen Theme

When I started playing with the RSS feeds, I noticed that the feed would truncate and then add a link at the end that said Continue Reading with an arrow. I tried for a few hours to remove this since it was not fitting in with what I was trying to accomplish in the layouts. It turns out that this is actually added by the theme itself to the RSS feed.

For the purpose of using a blog for RSS news feeds, I have been just using the default TwentyTen Theme. You can actually go into the theme and remove that annoying Continue Reading if you want.

Here is how:

  1. Edit the file: [wordpress directory]/wp-content/themes/twentyten/functions.php
  2. Do a search for "Continue Reading" (Normally around line 241)
  3. Comment out the link within the function that starts with return…
  4. Save the file

Removed!