I want to include an external php file in wordpress single.php file; conditional to existance of certain custom taxonomies. That file should only include if post is linked to specified custom taxonomies. If custom taxonomy terms do not exist for that post, then file should not appear.

Thanks in advance;

Member Avatar for LastMitch

I want to include an external php file in wordpress single.php file; conditional to existance of certain custom taxonomies. That file should only include if post is linked to specified custom taxonomies. If custom taxonomy terms do not exist for that post, then file should not appear.

To answer that question you can read these tutorials:

http://wp.smashingmagazine.com/2012/01/04/create-custom-taxonomies-wordpress/

http://net.tutsplus.com/tutorials/wordpress/introducing-wordpress-3-custom-taxonomies/

http://sixrevisions.com/wordpress/taxonomy/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.