get_term_link doesn’t work

I do not know how ACF works or how its data is stored, but in general, I would just use usort() to sort the returned array of terms via the ACF value of cognome_nome. Note that array_push is a bit expensive to use, so try to avoid that 😉 As I stated in comments, your … Read more

Get custom taxonomy term url on archive page

If you are in term archive page, the taxonomy and term is actually set. You could hook wp_head to add the open graph in your functions.php: add_action( ‘wp_head’, ‘wpse_wp_head’ ); function wpse_wp_head () { //First, we check if we are in our custom taxonomy if( is_tax(‘my-custom-taxonomy’) ) { $taxonomy_slug = get_query_var( ‘taxonomy’ ); $term_slug = … Read more

Taxonomy link not working (leads to 404 page)

It seems you do not have a template for your custom taxonomy. I do not think so single.php will be used for this purpose. Have a look on this ARTICLE.. Look at the hierarchy,,, I think in your case you need taxonomy-soortpost.php Taxonomy hierarchy: taxonomy-{taxonomy}-{term}.php taxonomy-{taxonomy}.php tag-{slug}.php tag-{id}.php category-{slug}.php category-{ID}.php

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