Skip to content

Insane in the Main Frame

I am Ophidia, programmer.

  • Home
  • English

Wordpress

adding WordPress custom widget multiple times overrides old values

3. June 2018 ophidiaWordpress

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 […]

Read more

add_menu_page creates an extra submenu item

4. May 2018 ophidiaWordpress

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 […]

Read more

empty white page in wordpress admin

30. April 2013 ophidiaWordpress

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 […]

Read more

Permalinks – how they work

9. July 2012 ophidiaWordpress

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 […]

Read more

WordPress archive widget: group by years

28. June 2012 ophidiaWordpress

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’           => ”, […]

Read more

Customize the WordPress admin interface

27. June 2012 ophidiaWordpress

There is a very helpful article on customizing the admin interface on Six Revisions. Thanks! Very useful!  

Read more

wp_register_script was called incorrectly

1. February 2012 ophidiaWordpress

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 ( […]

Read more

wp-downloadmanager broken after server transfer

1. February 2012 ophidiaWordpress

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: […]

Read more

WordPress post_content formatting / paragraph

31. January 2012 ophidiaWordpress

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!

Read more

wordpress: nextgen problem after server migration

18. January 2012 ophidiaWordpress

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 […]

Read more
  • Privacy
  • Contact
  • RSS
Powered by WordPress | Theme: Astrid by aThemes.