ShokAIM
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Limit post title length (contains special characters)you’re referring to http://wordpress.org/extend/plugins/ps-disable-auto-formatting/ ? if yes … it doesn’t work … my characters get displayed correctly in html… the problem appears when i try to limit post title by characters using a function like :
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: Limit post title length (contains special characters)yes
content="text/html; charset=UTF-8"Or, alternatively, you can use wp_html_excerpt:
‘%%excerpt%%’ => (!empty($r->post_excerpt)) ? strip_tags($r->post_excerpt) : wp_html_excerpt(strip_shortcodes($r->post_content),155),
It would be more correct, because essentially removes part of an entity at the end of string.finely, after searching 2 hours for a fix ! THX waitxd
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] No related posts.I’ve downgraded to version 3.4.3 and everything works fine…
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] No related posts.Hi Mitcho,
I have installed 3.5.2b1 with YARPP Experiments 0.6 and I am using the latest wordpress 3.3. I am still getting no related post. I am using custom template.
All my articles have ‘No related Posts”
here my cache status:Cached: 100%
Cache type: custom tables
Number related:
0
1896
Generation dates:
2012-03-06
1896
Score (among those related): avg 0, sd 0…and using Dingus with threshold 1 I get no related posts…
any clue?
thanks