Creating conditional custom taxonomy links


show more Creating conditional custom taxonomy links provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress show less
please wait ...

Creating conditional custom taxonomy links

One of the great things about working with computers is that you can give them conditional statements or if/then instructions and have them do different things depending on what info they are provided. This is much used in web code because it gives designers and developers the ability to display different content depending on either what the browser is displaying or what the user does with it. In our case we can use conditional statements to display taxonomy links only if they're actually populated so we don't end up with something like the text :Meal type:: with no links next to it.

To do this we're first going to ask the server, if there are any taxonomy terms available before we actually try to display them. If you've been paying really close attention, you may have noticed that there is one taxonomy item missing on this list. We have Meal type, Servings, Difficulty, and Ingredients, but we're missing that item that was called preparation time. So let's add the Pr...

Creating conditional custom taxonomy links
Video duration: 4m 46s 3h 13m Advanced

Viewers:

Creating conditional custom taxonomy links provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress

Subjects:
Design Web
Software:
WordPress
Author:
please wait ...