What’s the URL for a category archive?

There is no date-based archive for a category. The /category/[slug]/ pages are already “archives”, in that they display old posts over different pages. The different pages can be accessed by adding page/2/, page/3/, … to the URL. The template tags to add these links are next_posts_link() and previous_posts_link(). If you want to add a date-based … Read more

Pagination throws 404 error on custom taxonomy archive pages

This function fixed the issue: function change_posttype() { if( is_archive() && !is_admin() ) { set_query_var( ‘post_type’, array( ‘post’, ‘portfolio’ ) ); } } add_action( ‘parse_query’, ‘change_posttype’ ); Then I just removed the paged and query_string function in my code and just left the regular loop 🙂

How to display the status of users (online – offline) in archive.php

It looks like you’re close on this one. Move this function: function is_user_online( $user_id ) { // get the online users list $logged_in_users = get_transient( ‘users_online’ ); // online, if (s)he is in the list and last activity was less than 15 minutes ago return isset( $logged_in_users[$user_id] ) && ( $logged_in_users[$user_id] > ( current_time( ‘timestamp’ … Read more

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