How to make a menu item always point to the latest post? The first step was to find out a proper filter hook that is related to a menu item. I searched the “apply_filters” text in the “nav-menu.php” file and got 5 filter hooks.
The last filter hook seemed promising. It was possible to change a menu item now. Continue reading
I didn’t know that a WordPress site may crash IE8 before last week. The WordPress site crashed IE8 over again and again after I disabling all the plugins, commenting all the scripts, even disabling all the shortcodes. After eliminating all the impossible, I found out the cause of the problem. It was the first code line in the style.css file of the child theme.
@import url("../the directory name of the parent theme/style.css");
I feel like trying new stuff. So I won’t miss the new WordPress Twenty Thirteen theme.
I downloaded the latest WordPress nightly build from http://wordpress.org/nightly-builds/wordpress-latest.zip and uncompressed it. I then compressed the “twentythirteen” folder in the “wordpress-latest\wordpress\wp-content\themes” folder. I then installed the Twenty Thirteen theme in .zip format and clicked its “Activate” link expectantly. To my surprise, I met with an error message claiming “Twenty Thirteen requires at least WordPress version 3.6. You are running version 3.5.1. Please upgrade and try again.” 8-O