Pagination on taxonomy archive pages breaks

Figured it out myself. Apparently, the pagination break because both my ‘products’ and my ‘types’ (those are not the terms I have, just for demonstration purposes) are having the same slug. Products has a slug of ‘products’ and types has a slug of ‘products/%typename%’. Due to this I can make my permalinks hierarchical: products/dvd or … Read more

Page is displaying blog archives

Does slideshow-home.php has a loop as well? You need to ensure that you reset the queries or rewind posts while using multiple Loops <?php wp_reset_query(); ?> Multiple_Loops Reset Query

How to have two different versions of a tag/category/taxonomy archive page?

My solution at the moment is to use a GET variable to request a different page template: Regular version of taxonomy page: mysite.com/subjects/science Blog version of taxonomy page: mysite.com/subjects/science?view=blog To handle the ?view=blog variable, I add this conditional to the top of taxonomy.php (or taxonomy-subjects.php and any other taxonomy-{slug} that I want to have an … Read more

How do I call posts with a certain tag?

It’s because when you call query_posts, you’re overwriting the original query with a new one, you have to get the original query and reset the things you want to change. global $query_string; $per_page = get_option( ‘to_count_archives’ ); query_posts( $query_string . ‘&posts_per_page=” . $per_page );

Need to check is_archive during init

This is what I could come up with, within init like you said ! Even if you print the $GLOBALS array, there is no way to check if the current page is an archive, is_archive is also set to blank! But if you check the $_GET array, the q variable contains the current archive type … Read more

Disabling archives, search results, comments, etc?

Two separate parts to consider: comments / trackbacks and archive pages. If you don’t enable comments and trackbacks, no links will exist for them, thus a 404 or redirect won’t be necessary. You can’t link to something that isn’t there 🙂 As for the archive pages, WP will create those whether you want them or … Read more

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