theinfinityes
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: display only parent category, can’t make linknevermind. this is what I needed:
Forum: Fixing WordPress
In reply to: problems limiting post titlesactually, that code still gave me some trouble, turning some of the quotes into a’s with ^’s over them. turns out the
htmlentities()
function is unneccessary.this code seems to work perfectly, for anyone else wanting to do this.
function short_title() { $mytitleorig = get_the_title(); $title = html_entity_decode($mytitleorig, ENT_QUOTES, "UTF-8"); $limit = "49"; $pad="..."; if(strlen($title) >= ($limit+3)) { $title = substr($title, 0, $limit) . $pad; } echo $title; }
Forum: Fixing WordPress
In reply to: problems limiting post titlesgot it. used
function short_title() { $mytitleorig = get_the_title(); $html_decode_title = html_entity_decode($mytitleorig, ENT_QUOTES, "UTF-8"); $limit = "49"; $pad="..."; if(strlen($html_decode_title) >= ($limit+3)) { $html_decode_title = substr($html_decode_title, 0, $limit) . $pad; } $title = utf8_encode(htmlentities($html_decode_title)); echo $title; }
thanks for the help man. ??
Forum: Fixing WordPress
In reply to: problems limiting post titlesahhh, i thought if i put them in as code form they wouldn’t convert.
&# 039 ; and
&# 8217 ;Forum: Fixing WordPress
In reply to: problems limiting post titlessorry they show up as
'
and
’
right in the browser.
Forum: Fixing WordPress
In reply to: problems limiting post titlesalmost works perfectly.. it solved the problem for the brackets, and all lines are now equal length, but the apostrophes are still giving me trouble. they now show up right in the browser as ’ or ' instead of ‘
Forum: Fixing WordPress
In reply to: problems limiting post titlesalso tried
function short_title() { $mytitleorig = get_the_title(); $mytitlehtml = htmlentities($mytitleorig); $title = html_entity_decode($mytitlehtml); $limit = "49"; $pad="..."; if(strlen($title) <= $limit) { echo $title; } else { $title = substr($title, 0, $limit) . $pad; echo $title; } }
Forum: Fixing WordPress
In reply to: problems limiting post titlesThanks, I think that’s on the right path. I’m having trouble implementing it though. This is what I tried:
function short_title($after = '', $length) { $mytitleorig = get_the_title(); $mytitlehtml = htmlentities($mytitleorig); $mytitle = html_entity_decode($mytitlehtml); if ( mb_strlen($mytitle ) > $length ) { $mytitle = mb_substr($mytitle,0,$length); echo $mytitle . $after; } else { echo $mytitle; } }
any ideas?
Forum: Plugins
In reply to: Auto update freezes for plug-in.i had the same problem, it seems to be an issue with your servers php memory limits. i fixed the problem by uploading a php.ini file containing the single line:
memory_limit = 128M
to the main wordpress folder and the wp-admin folder (not sure which one did the trick…)if that doesn’t help contact your host and ask how to increase your php memory.
good luck.
Forum: Fixing WordPress
In reply to: spaces between tags in tag cloudtheinfiniteyes.com is my blog.. please help