Is there a way to edit non-custom term attributes?

There’s a filter for taxonomy labels, taxonomy_labels_{$taxonomy} (the {$taxonomy} should be replaced with your custom taxonomy name) that allows you to filter pretty much all of it. Example: // Assuming your custom taxonomy is named ‘faq_category’. Adjust as needed. add_filter( ‘taxonomy_labels_faq_category’, ‘wpse626542_taxonomy_labels’ ); /** * Filters the taxonomy labels. * * @param object $labels The … Read more

How to correctly edit permalink structures for both default and custom posts/taxonomies?

With @Caleb‘s help we’ve sorted this. The main problem was that the rewrite parameter on the custom taxonomies was not set to false. Doing this removed /articles/ from the permalinks to these archives. We changed this: $rewrite = isset( $taxonomy[‘rewrite’] ) ? $taxonomy[‘rewrite’] : array( ‘slug’ => $taxonomy[‘slug’] ); $hierarchical = isset( $taxonomy[‘hierarchical’] ) ? … Read more

has_term not returning anything

If your second code block is in the same code block as your first, then adding $post->ID as the third parameter of the has_term() call should fix it: if ( has_term( ‘closed-captions’, ‘accessibility-options’, $post->ID ) ) { echo ‘CC’; } If it doesn’t then as Tom mentioned, please update your question to include the surrounding … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)