Related Content
Debugging And Testing PHP With assert()
PHP has a built in debugging and testing tool called assertions, which is essentially the assert() function and a few configuration options.
The Correct Way To Load A Template File In WordPress
Since WordPress 3.0 there has been a funcion called get_template_part(), which has been used quite a bit in the new Twenty Ten default WordPress theme. This is an evolution of the usual way to include parts of themes by using functions like get_header() to include the header.php file.
Extending The WordPress Page Walker
I have looked at printing an intelligent list of WordPress pages in a previous blog post, but I wanted to revisit this topic and use the Walker classes that are part of WordPress.
Some Essential WordPress Plugins
I know what you are thinking, but this isn't just another WordPress plugin blog post. I am asked every few weeks what WordPress plugins I would recommend, and I always end up giving a disjointed list of some from the top of my head.
WordCampUK 2010: A Review
WordCampUK is an informal 2 day conference and barcamp that centers around using, working with and developing in WordPress. This year's WordCampUK was held in Manchester and so being local I could hardly miss the opportunity to attend. It was a great event, with great talks and lots of friendly people who were really enthusiastic about WordPress.
Custom Post Types In WordPress 3.0
This article relates to WordPress 3.0. Much of the code posted here won't work on previous versions and some of the information may change in newer versions.
WordPress already comes with five different content types built into the system.
Posts
Comments
should really be
Cheers!
Submitted by Carl Helmertz on Tue, 06/21/2011 - 22:05
PermalinkYes and no. I did originally look at the code and think that. But the WP_DEBUG definition should always be defined as either true or false. If it isn't present then the rest of the code should also be missing as it is meant for debug purposes only.
Still, it's good practice to always test for the existence of the constants before using them. Especially in this case as if you remove the WP_DEBUG clause the if statement will always equate to true :)
Submitted by giHlZp8M8D on Tue, 06/21/2011 - 22:26
PermalinkI wished to have known this solution some hours ago as I had an error message only shown for a second or so.
Greats from Germany
Jan
Submitted by Jan on Thu, 09/08/2011 - 18:56
PermalinkSubmitted by Muzietto on Wed, 05/09/2012 - 06:20
PermalinkSubmitted by Frank on Thu, 09/20/2012 - 07:14
PermalinkSubmitted by Tom on Sun, 11/04/2012 - 11:05
PermalinkSubmitted by http://www.com… on Sat, 06/22/2013 - 13:53
PermalinkThank you very much for the invitation :). Best wishes. PS: How are you? I am from France :)
Submitted by MixPuh on Thu, 07/16/2020 - 06:13
PermalinkAdd new comment