Class active for Archive link – looped out

One way to do this is to get the current object ID with get_queried_object_id() and compare it against the category term ID inside the foreach loop. E.g. $current_object_id = get_queried_object_id(); foreach (get_categories() as $category) { $classes=””; if ( $category->term_id === $current_object_id ) { $classes .= ‘selected’; } printf( ‘<a class=”%s” href=”%s”>%s</a>’, $classes, get_category_link($category->term_id), $category->name ); … Read more

Add additional first page, last page links to the_posts_pagination()

the_posts_pagination() is an echo wrapper for get_the_posts_pagination(). The getter generates pagination links with paginate_links(), which returns a string with the links separated by a newline character by default. This string is passed to _navigation_markup() to get the complete pagination markup. We can manipulate the paginate_links() output with paginate_links_output filter, before the navigation markup is generated. … Read more

Links in nonalphabetic order

Well, the plugin My Link Order does exactly that. My Link Order allows you to set the order in which links and link categories will appear in the sidebar. Uses a drag and drop interface for ordering. Adds a widget with additional options for easy installation on widgetized themes.

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