.htaccess edits

Just switch the theme, then delete the theme you bought and after edited the .htaccess reinstall it. This should work without problems. If you have access to cpanel, set the values from the php settings section instead of rely on the .htaccess file.

Showing post thumbnail (attachment) on the archive.php category listing

You could use the WordPress function get_children. Although I don’t think it makes a difference, performance-wise. <?php while (have_posts()) : the_post(); ?> <?php $attachment = array_values( get_children( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘numberposts’ => 1 ) ) ); ?> <div class=”searchItem” style=”clear:both;”> <h3 id=”post-<?php the_ID(); ?>”> <?php … Read more

Multi-level page hierarchy

menu with non dynamic content if the menu structure is fixed then you can create a fixed menu using the “new” wp menu system (quadrillion weblog postings on that) menu with dynamic content if the menu structure is not fixed you can: a. ask the users to manually maintain the menu after e.g. adding a … Read more

How do I tell how popular a theme is?

Assuming that you are talking about commercial/premium themes the obvious answer is Google WordPress (theme name) and compare the results. A popular theme would likely have more results. WordPress.org lists the theme’s it contains according to how many times they have been downloaded.

Help with WordPress Query

After calling get_recent_posts() (or any other loop query), you typically have to run a foreach or while loop to cycle through the posts. So, you’ll need to change this: <?php $args = array( ‘tag’ => ‘featured’, ‘posts_per_page’ => ‘3’ ); $recent_posts = wp_get_recent_posts( $args ); ?> <!– Your HTML and WordPress template tags here. –> … Read more

How to add pagination to my code?

Add this to functions.php: // Pagination function pagination($pages=””, $range = 4) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo “<div class=\”pagination\”><span>Page “.$paged.” of “.$pages.”</span>”; if($paged > 2 && $paged > … Read more