CineWars
Forum Replies Created
-
Forum: Reviews
In reply to: [Lumière Movies] Great PluginPlease mark as resolved.
Forum: Reviews
In reply to: [Lumière Movies] Great PluginAs an addition, while there are some RSS plugins on the
not allowed
list, the ECHO RSS is not one of them.That worked a treat, thank you.
??
Sure thing:
function max_title_length( $title ) { $max = 62; if( strlen( $title ) > $max ) { return substr( $title, 0, $max ). " …"; } else { return $title; } } add_filter( 'the_title', 'max_title_length');
Obviously, using it as a php snippet has the code as
<?php function max_title_length( $title ) { $max = 62; if( strlen( $title ) > $max ) { return substr( $title, 0, $max ). " …"; } else { return $title; } } add_filter( 'the_title', 'max_title_length');
I wanted to use this code below as wpbeginner say:
This method gives you more control over where your titles are shortened
But I wanted to see if the above worked first:
<a href="<?php the_permalink() ?>"> <?php $thetitle = $post->post_title; /* or you can use get_the_title() */ $getlength = strlen($thetitle); $thelength = 25; echo substr($thetitle, 0, $thelength); if ($getlength > $thelength) echo "..."; ?> </a>
It still shows full title on main page even using that fix.
I’m sure it’s just me not understanding things correctly.
When was this fixed? I had to deactivate my Premium version because it foobard my site.
Forum: Reviews
In reply to: [Instorm] Fantastic!My pleasure, it is an elegant theme and the fact that it is FREE is amazing…I would buy a Pro version if one existed.
??
Forum: Plugins
In reply to: [Select Post Export] Post export links for site visitorsAs an addition to this, I did highlight the box to export media so I don’t know what I’m doing wrong.
Forum: Plugins
In reply to: [Select Post Export] Post export links for site visitorsI’ve tried this and thought I’d found the answer but on testing it, it doesn’t export the media, for some reason