» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Make further edits, (or Cancel)

(Login required to save to your tagged pages.)
(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

Change Page Permissions? Changing these permissions will adjust who can modify this page.

Anonymous (change)
(change)
(or Cancel)
Upload an image from your computer:
or Copy an image from a URL:
or Erase the current icon:
Icon Preview:

or Cancel

Erase first? The contents of first page and all pages directly attached to first will be erased.

or Cancel

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:
first

first

Tags Applied to First

No one has tagged this page.

first Wiki Pages

What is first? Edit this page and describe it here.

sorted by: recent | see : popular
Content Tagged first

How To Display Adsense On Your First Post Within The Loop

In this guide you’ll learn how to display Adsense on just your first post within the Loop. Sure, there may be plugins that will do this for you. This guide, however, will use code examples to accomplish the same thing by editing your WordPress theme.

The first step is to open up your index.php file in your theme editor. Find the following line:

<?php if(have_posts()) : ?>

Just above that, insert the following like this:

<?php $i = 1; ?>
<?php if(have_posts()) : ?>

Now, scroll down a bit until you find this line:

<?php endwhile; ?>

Insert the following above it, like so:

<?php $i++; ?>
<?php endwhile; ?>

The final step is to insert your Adsense code. Locate where exactly you’d like it within the Loop, and place it between a conditional tag like this:

<?php if ($i == 1) { ?> [YOUR ADSENSE CODE HERE] <?php } ?>

And that’s all you have to do. You can be creative with this code as well. You could add a certain css style class to the top post in your Loop. It doesn’t even have to be the first either, as you can just change the number in $i == 1 to whatever you want. This same method can be used in other archive templates such as archive.php.

Related posts

WordPress: Wordpress Tutorials,Themes and Plugins

Self-Help Site First30Days.com Launches With $5 Million from Hearst and Dick Parsons

first-30-days-logo-2.pngSelf-help is big business—just look at all the Tony Robbins and Dummies books at your local Barnes & Noble. As with all media businesses, the self-help industry is moving online in a massive way. The latest Website to organize itself around self-help is First 30 Days, which took the covers off its private beta this weekend. The new site is designed to take people through the first 30 days (and beyond) of major life changes, such as the first 30 days of finding your dream job, starting a new business, buying a home, being pregnant, or getting a divorce. Founder and CEO Ariane de Bonvoisin tells me, “We will help you through any change that life throws you and will help you get going on anything you want to get started.” The site is launching with 45 different life changes and will soon get up to 100.

Before founding First 30 Days, de Bonvoisin worked as a corporate strategist/VC at Bertelsmann, Sony, and Time Warner. At Time Warner, she worked directly for former CEO Dick Parsons, who personally put up the seed money for the business. The company recently closed a $5 million series A financing, led by Hearst Corporation (other investors included Parsons and the New York City Investment Fund). The site plans to make money with ads and sponsorships targeted at each life change—stroller ads for people looking at how to deal with pregnancy or being a new parent pages, banking ads for people contemplating starting a new business.

first-30-days-business-small.pngI suspect that First 30 Days will appeal more to the Oprah crowd than to readers of TechCrunch, but I also suspect it will have no problem finding its audience. The site will likely skew two-thirds towards women, predicts De Bonvoisin, (indeed, it’s the type of concept you’d expect to see on the cover of a woman’s magazine). But she hopes men who wouldn’t be caught dead reading a self-help book in public will flock to the site as well in search of answers.

After all, people going through major changes in their work or personal lives need a place to turn to when they cannot figure out what to do. Visitors are encouraged to sign up to get a daily e-mail with a different tip about the particular change they are going through. Each life change has its own section on the site, with Top 5 Things to Do, expert interviews, daily news and blog posts from across the Web on that topic, a daily tip, community Q&A, shared wisdom from readers, and links to relevant books, websites, magazines, movies, music, and more experts. There is also a weekly podcast called Change Nation that features interviews with celebrities about how they deal with change.

The site takes a positive approach to dealing with the changes in your life. Its overriding message is: change is inevitable, change is good, make the most from it. The whole approach reminds me of corporate change management techniques applied to people’s personal lives. I’m surprised it hasn’t happened sooner. Each change section on the site follows a familiar template, which provides easy entry points, but sometimes can make every life change sound the same. For instance, look at the two lists of Top 5 Things to Do below. One is for improving your sex life and the other is for switching to a Mac. You can tell which is which, but barely:

first30days-4.pngfirst30days-6.png

Dig deeper and you’ll find some actual advice,and maybe others going through the same change. That is potentially the most powerful aspect of the site, as a place to find other people who are going through the same twists in their lives as you are. Once you go through all the expert advice and check out the resources, that would be the biggest reason to go back.

The site is built on Ruby on Rails. And there are two viral widgets in the works. One is an Everyday Change tip that can bring some inspirational candy to people’s personal sites and pages. The other is a Facebook app due out in March where you can select which types of changes you are going through, get tips sent to your Facebook feed, and post a bar chart that shows how many people on Facebook (who have loaded the app) are going through breakups, starting a job, or going through some other change.

First 30 Days is starting on the Web, but it could easily expand into other media such as books and TV. In May, HarperOne will be publishing The First 30 Days by de Bonvoisin. And she plans many more books. “The idea in my head,” she says, “was to start it as a book series. Dick Parsons said start it online. With books, I have no relationship with you.” If she can make First 30 Days the first place people go to when they need help with life’s transition points, it could easily become more than a 30-day habit.

first30days-1.png
first30days-2.png

Crunch Network: CrunchGear drool over the sexiest new gadgets and hardware.

Web2.0: TechCrunch

Egypt

SIP: del.icio.us tag/SIP

Page 1 | Next >>
Username:
Password:
(or Cancel)