iragless
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Document galleries only showing short codes.Thanks Dan
Sorted it out.
This line was in .htaccess
AddHandler application/x-httpd-php5s .phpChanged to
AddHandler application/x-httpd-php54 .phpAnd the problems was fixed. Not sure how that line got there?
Regards
IanForum: Hacks
In reply to: Pages displaying custom post type by custom taxonomyThanks bcworkz.
Really appreciate the feedback.
I’m fairly new to wordpress development and hadn’t considered query vars even though I’ve used url parameters in other circumstances. I think that will do exactly what I want.
Only downside I can see with this is having separate meta titles and descriptions for each taxonomy although there may be a way to overcome this with YOAST or similar.
Regards
IanForum: Hacks
In reply to: taxonomy_exists to display alternate size featured imageThanks
I figured that might be the case. Anyway I got it to work with wp_get_post_terms() and then using in_array to check for the required taxonomy. Basically this in case it helps someone else.
$term_list = wp_get_post_terms($post->ID, $taxonomy, array("fields" => "names")); if (in_array('Spotlight', $term_list)) { ...do stuff for that taxonomy; } else { ...do something else; }Not sure why taxonomy_exists() isn’t working? Might have a look later and see if I can work it out.
Regards
Ian