1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need Someone To A Quick Custom Code Job

Discussion in 'Hire a Freelancer' started by jamesflynn318, Mar 25, 2009.

  1. jamesflynn318

    jamesflynn318 Newbie

    Joined:
    Nov 19, 2008
    Messages:
    20
    Likes Received:
    46
    I have a wordpress site that utilizes a combination of the datafeedr plugin and phpbay.

    My problem is when I use the datafeedr function that allows me to automatically insert one of my store products into a blog posts, it pulls the entire product description, but I only want the first 300 characters to be displayed.

    Here is an example of a blog post that I currently set up with by inserting a datafeedr product.

    strollerwarehouse(dot)com/test-review

    I asked how to accomplish this in the datafeedr forum and here is the answer I received:



    This is very difficult to do without losing your product image.

    You can try editing your template and replacing the_content() with get_the_content() and then applying substr to the text to limit the number of characters you want to display.

    Maybe something like this within your loop:

    PHP Code:
    $content = get_the_content();
    $content = substr($content, 0, 300); // show first 300 characters
    echo $content;



    I am not entirely sure how to accomplish this so I would like to find a php guru that can take care of this for me as soon as possible. PM me if you want to give it a shot and let me know what you will charge.

    Thanks
     
  2. Rooro

    Rooro Newbie

    Joined:
    Jan 15, 2009
    Messages:
    38
    Likes Received:
    41
    Occupation:
    Web Dev
    Completed!