Here is another great WordPress function to test if you are in a subcategory or the actual parent category and if so return true. This function is pretty much identical in concept to the is_page_or_sub() function I released previously. However, it just tests categories and not pages. Also, the code is significantly different since there are a few more available pre existing function we can build upon here.
For example, the cat_is_ancestor_of() function comes in really handy and does a lot of the heavy lifting for this simple but very powerful function. I use this very function to build complex category based navigation and ...
Is Category or Subcategory WP Function
Valen Designs Gets an Overhaul!
I'm very happy to announce the redesign. Over the past year or so since the last update things have really been progressing and my portfolio is looking very respectable with a few projects that I am very happy to be a part of. However, I have been so busy that the simple task of launching a new and improved version of this site has been something of a challenge. I wanted to completely rewrite the code and make the design as awesome as I could with the spare time I had, but I also wanted to keep the logo and expand on the colors and not change the overall ...
Is Page or Subpage WP Function
Have you ever wanted to know if the page you're on is a child of a certain page because you needed to know that information in order to add a snippet of code to the sidebar or remove something or whatever you had planned but you tried and just couldn't figure out a solution that was simple and easy to maintain? Well, here is a piece of code that will do just that. I use this very code all over the place, on pretty much every project I do. The concept is simple. I need to know more than if the is_page('portfolio'); I ...
Tuts+ Network Gets Complete Makeover
Finally, all five of the Envato Tuts+ sites have now been switched to the new theme and updated branding, and I just completed the much anticipated Flashtuts+ the other day. The staff in charge of content are feverishly getting ready for a launch, which should be anytime now. So many exciting things have been happening over at Envato recently. A couple new tutorial sites, a new marketplace and one of the coolest things in my opinion to happen in the last few months is the addition of a completely new Tuts+ dashboard and redesigned members section.
Now when you sign up for the plus program you only pay ...





