Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter iragless

    (@iragless)

    Thanks Dan

    Sorted it out.

    This line was in .htaccess
    AddHandler application/x-httpd-php5s .php

    Changed to
    AddHandler application/x-httpd-php54 .php

    And the problems was fixed. Not sure how that line got there?

    Regards
    Ian

    Thread Starter iragless

    (@iragless)

    Thanks 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
    Ian

    Thread Starter iragless

    (@iragless)

    Thanks

    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

Viewing 3 replies - 1 through 3 (of 3 total)