Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By trude76

Thread: Limit characters AND strip tags in excerpts

  1. #1
    Thread Starter
    trude76's Avatar
    Join Date
    Dec 2012
    Location
    Leipzig, Germany
    Posts
    785
    Thanks
    1
    Thanked 61 Times in 57 Posts

    Limit characters AND strip tags in excerpts

    Hi,

    I have a problem with the excerpts when jobs are formattet with html.

    It destroy the layout. So I decided to combine the character limit with a strip_tags like:

    Code:
    <?php echo substr(get_the_excerpt(), 0,180); ?> && <?php echo strip_tags(get_the_excerpt());?>
    Unfortunately it does not work this way because it ignore the first function of character limit.I tried several different ways but it's all the same.

    What I am doing wrong? I'm thankful if you could please help me in this case (-:
    .................................................. .......................
    Jobs Germany
    Jobs Austria
    Jobs Switzerland

    .................................................. .......................

  2. #2
    Marketplace Seller spartac's Avatar
    Join Date
    May 2011
    Posts
    7,169
    Thanks
    74
    Thanked 829 Times in 807 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    jobthemes.com









    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

  3. #3
    Thread Starter
    trude76's Avatar
    Join Date
    Dec 2012
    Location
    Leipzig, Germany
    Posts
    785
    Thanks
    1
    Thanked 61 Times in 57 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    dutchman likes this.
    .................................................. .......................
    Jobs Germany
    Jobs Austria
    Jobs Switzerland

    .................................................. .......................

  4. #4
    Marketplace Seller spartac's Avatar
    Join Date
    May 2011
    Posts
    7,169
    Thanks
    74
    Thanked 829 Times in 807 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    jobthemes.com









    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Strip Special Characters
    By gmac in forum Vantage Search Auto Suggest
    Replies: 2
    Last Post: October 23rd, 2014, 07:00 PM
  2. Limit the nr of characters for titles
    By f1trader in forum Vantage General Discussion (Legacy)
    Replies: 6
    Last Post: July 18th, 2013, 03:43 PM
  3. Limit characters, limit photos in free ad
    By lucasstarbuck in forum ClassiPress General Discussion
    Replies: 7
    Last Post: July 30th, 2012, 11:48 PM
  4. [TUTORIAL] Limit Characters for Job Title
    By Anthony in forum JobRoller General Discussion
    Replies: 1
    Last Post: January 12th, 2011, 12:30 AM