Any way to hide a blog posts text if it’s longer than let’s say 300 characters

You could use this filter which can be found in the default WordPress themes functions.php file (twentyten). This will limit the post to 300 characters, so theres no need to hide it. function twentyten_excerpt_length( $length ) { return 300; } add_filter( ‘excerpt_length’, ‘twentyten_excerpt_length’ ); There are other means to achieve the same thing, but stick … Read more

WordPress permalink issue

I think the problem comes from the rewrite rules that had been saved when you developed the site locally. To fix it, you should go to Settings -> Permalinks and set the permalink structure again. Note that, you may just click on the save button, that will flush the rewrite rules for you.

search and add in wordpress content

Try the Search and Replace plugin: http://wordpress.org/extend/plugins/search-and-replace/ This searches for strings and will allow you to search for every instance of video-x-player, using a regex for the number. If you don’t want to use regex searching on video- will bring up every instance that is already in your database. If you intend to keep using … Read more

Function to call either single post or category

If this is the same if/else, you can just combine into if ( is_category() || is_single() ). You don’t need to pass anything to is_category() or is_single() most of the time, unless you are looking for a category or post in particular.