Results 1 to 2 of 2

Thread: mb_strlen(get_the_title() problem

  1. #1
    Thread Starter
    Amateur netpl's Avatar
    Join Date
    Nov 2010
    Location
    Poland
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post

    mb_strlen(get_the_title() problem

    Hello,

    in my test site (new wordpress install + new Classipress 3.05 install) generated html is substracted on main page and category listing. It is at place where in index.php, loop-ad.php and featured.php starts code:

    PHP Code:
    <?php if (mb_strlen(get_the_title()) >= 75) echo mb_substr(get_the_title(), 075).'...'; else the_title(); ?></a></h3>
    on generated html page it looks (below part of code source - main page, without slider):


    HTML Code:
    <!-- to this place everything ok -->
    
                    <div class="ad-block">
    
    			<div class="ad-left">
    
    				<a href="http://nowy.anonsik.pl/ogloszenia/beata/" title="Beata" class="preview" rel="http://nowy.anonsik.pl/zdjecia/477157.jpg" ><img width="75" height="75" src="http://nowy.anonsik.pl/zdjecia/477157-75x75.jpg" class="attachment-ad-thumb" alt="477157.jpg" title="477157.jpg" /></a>
    			
    			</div>
    
                <div class="ad-right ">
    
                    <h3><a href="http://nowy.anonsik.pl/ogloszenia/beata/">
    <!-- html code ends here! -->
    Permalinks are updated.

    My site is http://nowy.anonsik.pl

    Warning! Adult content possible

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,997
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

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