176985602337900

Find freelancers. Lose those costly delays.

With 1.7 million freelancers, we'll match you with the perfect talent.

or, Register with Elance »

Customize WP Function
Sign in to Add to Watch List

IT & Programming > Blog Programming

View Change History

The client has made the following changes to the job.

Description
Date

Job awarded.

Dec 3, 2012
Close

Job Description

  |  Change History >>

Updated

Close
  • Posted: Sun, Dec 02, 2012
  • Time Left: Closed
  • Location: Anywhere
  • Client prefers freelancers from:
    Anywhere

    You are still able to submit a proposal for this job.

    The client prefers freelancers from
    a different location.

    You're still able to submit a proposal for this job, regardless of your location.
  • Start: Immediately
  • Hourly Rate: Less than $10 / hr
  • Hrs/wk: 1 | Duration: 1-2 weeks
  • Work View™ Payment Protection
  • U.S. freelancers must have W9
Sign in to view client's details

I have a wordpress function which i need customized i need to make the read more function be coded to be as follows below:

if $content has more than 80 words -> then display the_permalink()

Below is the function :

function content($num) {
$theContent = get_the_content();
$output = preg_replace('/<img[^>]+./','', $theContent);
$output = preg_replace( '/<blockquote>.*<\/blockquote>/', '', $output );
$output = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $output );
$limit = $num+1;
$content = explode(' ', $output, $limit);
array_pop($content);
$content = implode(" ",$content)."...";
echo $content;
}

and this is how we have it implemented in the template..:

<?php content('90'); ?> <a href="<?php the_permalink(); ?>">Read More</a>

This is a simple job....need it really quick

Sign in or Register to see more

Desired Skills
PHP, WordPress
Job ID: 35684700
Proposals
Hourly Rate: Avg $ | High $ | Low $ — Show Pricing
  • Submit Date (Latest)

 United States  |  
We are a group of talented software engineers experienced in creating Web, Mobile, and Desktop applications for many clients over the years. We...
7
  |  
 5.0   |  Private   |  21 Jobs
Bid ID: 35688410  |  Submitted: Dec 2, 2012 21:38 ET 
Proposal SEALED

Sagar Seth      
Sagar Seth's identity has been verified.  Learn More
 India  |  
Winner
We are a team of highly skilled and passionate Developers,Designers and Programmers. We have over 8 years of professional experience in creating...
5
  |  
 4.8   |  Private   |  42 Jobs
Bid ID: 35688082  |  Submitted: Dec 2, 2012 21:17 ET 
$8.77/hr
Sign in to Elance and start working on jobs today.
Sign in to view more of the job details and submit a proposal. Once registered, you'll have access to thousands of jobs online or through email.
Are you ready to post a job like this one?
Post a Similar Job »