Show post thumbnail only if it exists using timthumb

As commented above, you don’t have to use TimThumb at all to get additional image sizes for your uploaded images. WordPress ships with the add_image_size() function. // functions.php add_action(‘init’, ‘wpse26655_add_additional_image_sizes’); function wpse26655_add_additional_image_sizes() { add_image_size(‘thumb200x120’, 200, 120, true); } In your template files, you could than query your thumbnail with your desired image size. E.g. <?php … Read more

How to create a second index.php?

Elaborating on Rachel Baker’s answer: Copy the index.php file and name it something like popular.php. At the very top, paste the following: <?php /* Template Name: Posts by Popular */ ?> Now, go in to the WordPress admin and create a new page, called something like “By Popular”. On the right-hand side, select the “Posts … Read more

Toolbox theme using printif statement – help needed understanding code block

The % signs are arguments in the string to be formatted. The s represents a string type argument must be passed. I’ve notated which arguments are connected to which strings being passed in. get_permalink() – %1 string type get_the_date( ‘c’ ) – %2 string type get_the_date() – %3 string type get_author_posts_url( get_the_author_meta( ‘ID’ ) ) … Read more

Capcha not getting displayed

I think you have problem in font files path. Just check this link. Please fix your font path. You can check this page for reference. Read the comment section of this page. Thanks