WordPress as a data intensive web app

Its more than possible to create a data-intensive, even real-time web application, using the WordPress platform as a base framework. The WordPress database architecture is as such that is suits websites that are either blogs or content management systems of some kind. What is defined as being a CMS-like-site can be wide and varied in … Read more

current-menu-item class not working

This is happening because the menu item is created with the page page “books”, but the page currently displayed is post-type-archive-books (see classes in the body and menu item list). You can use something like function add_nav_menu_classes($classes, $item) { if (is_post_type_archive(‘books’) && ($item->title == “Books”)) { $classes[] = ‘current-menu-item’; } return $classes; } add_filter(‘nav_menu_css_class’ , … Read more