Getting URL of Resized Image

Due to increased security risks with on-the-fly resizing scripts, I would convert over to the_post_thumbnail() or get_the_post_thumbnail() functions. If your theme doesn’t have post-thumbnail support, add this to your functions.php file. add_theme_support(‘post-thumbnails’); This will help your load times dramatically.

Correct way to make a title a link

Nice one for using WordPress, but this is a straight-up HTML question. Nontheless… <div class=”home-post-header”> <h2> <a href=”https://wordpress.stackexchange.com/questions/105657/<?php the_permalink() ?>”><?php the_title() ?></a> </h2> </div> h2‘s are considered block-level, whereas a & span are inline. Standards dictate that a block-level element cannot be nested inside an inline one. So use a div instead, & place the … Read more

Why we do need wp_enqueue_script() function?

According to the Codex: wp_enqueue_scripts() links a script file to the generated page at the right time according to the script dependencies, if the script has not been already included and if all the dependencies have been registered. You could either link a script with a handle previously registered using the wp_register_script() function, or provide … Read more

Replacing static code in a template file with a sidebar and widgets?

To speak generally, you need to define a sidebar for your theme (sidebars contain widgets) and display that sidebar in your template. In your theme’s functions.php file, register a dynamic sidebar using register_sidebar() Create a sidebar.php file in your theme directory that calls dynamic_sidebar() Make sure your other template files (or header.php/footer.php if that is … Read more

How customizable is a self-hosted WordPress blog compared to a Blogger blog?

The front-end customization options in self-hosted WordPress are absolute. You can edit whatever you want in PHP/HTML templates and CSS style sheets. While WordPress comes with single theme (“Twenty Ten” at moment) the availability of third party free and paid themes for it is huge. See: Where can I download WordPress themes from? for good … Read more