Query post for ‘selected category’ in archive.php

The easiest way to do this is to simply make a category.php template file, that way you’re not jamming everything into one template with multiple query’s and conditionals. http://codex.wordpress.org/Template_Hierarchy#Category_display It is unclear what you mean by “featured”, do you want an url like http://example.com/portfoliography/architecture to have a select posts at the top? Or do you … Read more

WordPress loading index page instead of archive.php

archive.php is not used for subsequent pages of non-search, non-taxonomy, … based subsets of content. I think you might be looking for paged.php (but that’ll also be used for the first page). Alternatively add logic to index.php to call a different template where page number is greater than one. Correction on reviewing http://codex.wordpress.org/Template_Hierarchy#Visual_Overview pages.php is … Read more

Category index featured image

What I did was; using the Taxonomy Images plugin to associate an image with each category, then to my theme’s header.php, below the <a> line in the above code; <?php $image_id = apply_filters( ‘taxonomy-images-queried-term-image-id’, 0 ); if ( is_category() && ! empty( $image_id )): print apply_filters( ‘taxonomy-images-queried-term-image’, ”, array( ‘image_size’ => ‘header’ ) ); else … Read more

Archive links don’t work when clicked

OK. Here is your problem. wp_get_archives( $args ); … $args = array( ‘type’ => ‘monthly’, ‘limit’ => , ‘format’ => ‘html’, ‘before’ => , ‘after’ => , ‘show_post_count’ => false, ‘echo’ => 1 ); You are use wp_get_archives incorrectly. That function accepts particular ‘keys’, and cat isn’t one of them. You can use an array … Read more

Displaying Archives List

There is but the filter sucks, it only gives you the link HTML: add_filter( ‘get_archives_link’, ‘wpse74891_archives_link’ ); function wpse74891_archives_link( $link ) { $link = preg_replace_callback( ‘/>([A-Za-z]+\s+\d{4})/’, function( $matches ) { return ‘>’ . date( ‘m.y’, strtotime( $matches[1] ) ); }, $link ); return $link; } Using this method you can pass in any date format … Read more

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