jamesflynn318
Newbie
- Nov 19, 2008
- 20
- 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
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