Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: WP code change help Please.

  1. #11
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    going out of my realm now can try something like this

    in functions.php
    PHP Code:
    function ShortenText($str$length) {
      
    $str strip_tags($str);
      
    $str explode(" "$str);
      return 
    implode(" " array_slice($str0$length));

    then change

    PHP Code:
    <?php the_title(); ?>
    to something like this

    PHP Code:
    <?php echo ShortenText(get_the_title(), 2); ?>
    a php guru may see a error in this and help kinda worked but not perfect on my test site.

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  2. Thanked by:

    Sami4u (3 April, 2010), Will.Spencer (5 April, 2010)

  3. #12
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,403
    Thanks
    669
    Thanked 291 Times in 219 Posts
    Hi,

    Need more info on this.

    Where do I paste the code in functions.php

    I placed at the bottom and it brought the site to a screeching halt.

    Even the admim quit working had to ftp. the backup twice.

    got this error when you went to the site.

    Parse error: syntax error, unexpected $end in /home/sami/domains/freewomensblogs.com/public_html/wp-content/themes/freewomenstheme/functions.php on line 417

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  4. #13
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    should add it to the top of the function.php right after the <?php

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  5. Thanked by:

    Sami4u (3 April, 2010), Will.Spencer (5 April, 2010)

  6. #14
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,403
    Thanks
    669
    Thanked 291 Times in 219 Posts
    Hi Mr.Bill,

    That worked. 100% Thanks a bunch.

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

Page 2 of 2 FirstFirst 12

Similar Threads

  1. change about the world?
    By theezy in forum General Chat
    Replies: 7
    Last Post: 17 May, 2010, 20:49 PM
  2. [WTH] Someone to Change Text on a .PSD
    By Kovich in forum Marketplace
    Replies: 1
    Last Post: 22 April, 2010, 07:20 AM
  3. A question about change in url
    By mega in forum Promoting
    Replies: 3
    Last Post: 21 July, 2009, 06:06 AM
  4. One Change You Would Like To See On WMP?
    By Farrhad A in forum General Chat
    Replies: 13
    Last Post: 3 June, 2009, 07:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •