A custom wordpress widget wouldn’t work as soon as I inserted two or more of the widgets. Saving a value wrote them to all the widgets. The reason seems to be that I forgot to set a base ID in […]
When creating a new main menu item with add_menu_page in the wordpress admin interface, this automatically generates a first submenu item that has the same name as the main menu. Which looks like this: To avoid this, it’s necessary to […]
Spending every day trying to fix clients’ problems with wordpress did not prepare me for this: my own wordpress login ended in a blank page. After some debugging, I realized that the problem had to be wp_redirect. Thankfully I stumbled […]
For a long time, I was unaware as to how the wordpress permalinks are working. After all, there is only a simple rule written into the .htaccess file, everything else happens within the script. All rules can be found in […]
What I wanted to do was group my archive entries by year and only show the months if a year is clicked. So this is my code in sidebar.php: $args = array( ‘type’ => ‘monthly’, ‘limit’ => ”, […]
There is a very helpful article on customizing the admin interface on Six Revisions. Thanks! Very useful!
If you set debug to true in wordpress, you might get a notice that wp_register_script or wp_enqueue_script was called incorrectly. The solution to this is to not call these functions directly but wrap them in an action: Before: if ( […]
After migrating to another server, the downloadmanager plugin suddenly didn’t show anything but the categories. The data were still available in WordPress, only they weren’t showing on my page any more. This happens to many plugins after a server migration: […]
If I fetch my wordpress data with get_post, then post_content is unformatted. nl2br doesn’t really help, but there is a better solution: $p = get_post($id); apply_filters(‘the_content’, $p->post_content); I just LOVE WordPress!
After transferring a project from server A to server B, suddenly the nextgen config data disappeared. The galeries on the page itself were no longer working, instead of a slideshow there were all images displayed without a style. Obviously one […]