Tagged Questions
0
votes
3answers
98 views
Custom post type single-{custom}.php not working
I made a custom post type with the machine name special_media_post and wordpress is simply not seeing the single-special_media_post.php. I am at a complete lose. It keeps defaulting to the index.php
...
1
vote
1answer
78 views
How do I display a custom field from a custom taxonomy in single.php?
I know that the following mysql query produces the exact results I wish to echo within single.php:
SELECT meta_value
FROM `wp_taxonomymeta`
WHERE `taxonomy_id` =565
AND `meta_key` LIKE 'baseurl'
...
2
votes
2answers
542 views
How to display different single post template based on author?
My current singlepost.php makes use of the following if conditions and renders the appropriate template.
<?php
$post = $wp_query->post;
if ( in_category('4') || in_category('59') ) {
...
2
votes
3answers
2k views
get taxonomy name of current post
Hierarchical taxonomy of custom post type 'projects' > 'projects_category'.
Two example 'projects_category' hierarchies would be:
Big Corporates > 1st Company Name > A Post Title
Small ...