Displaying latest Posts – fixed height – Excerpt vs. Content?

The simple way to do this is to define the height/width in CSS of a container, and then apply a trim on the excerpt. To change default excerpt length add this to you functions.php function new_excerpt_length($length) { return 100; // change this to how many any characters you want } add_filter(‘excerpt_length’, ‘new_excerpt_length’); Manually controlling the … Read more

same wordpress, 2 domains

There are two options to run multiple sites from one installation: Use multi-site with a subdomain setup. You can use completely different domains then. Adjust the site URL depending on the currently requested host.

Extract an embedded video from the content

Embeds are cached in hidden post meta fields with _oembed_* keys. You could retrieve all of meta (with get_post_custom() for example) and try to get info from it. However, from quick look at my test data it seems that duplicates are not uncommon there (might have to do with either WP version changes or embed … Read more

How to make author box like this & add after every post?

I’ve not tested your code; but assuming it’s correct and working well, edit your single.php file and insert this code just after the point where you end your post content and before the Comment Section starts. I’d suggest to write this Author Box code in a separate file and then use get_template_part to insert the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)