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;

Re: Include php file in wordpress single.php 80 80
Member Avatar

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.