Delete Term via edit-tags.php

“<a class=”delete-tag” href=”” . wp_nonce_url( “edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id”, “delete-tag_’ . $tag->term_id ) . “‘>” . __( ‘Delete’ ) . “</a>”; $tag->term_id It’s exactly what it says, where did you define $tag? Also, I’m assuming $id is the $tag->term_id, so you might want to use $id instead.

Taxonomy templates in a multilanguage site

The templates use the internal name of the taxonomy. These will be the same in all languages. The internal name is the first part in register_taxonomy($taxonomy, $object_type, $args). What your users see is the translated name from the labels. So, no, you don’t have to recreate the templates for each language.

Display yesterday’s last post’s Custom field from Unique terms of one Taxonomies

I hope I understood everything correct: display a specific custom field from a custom post-type post assigned to a specific term in a custom taxonomy for todays and yesterdays latest entry I can’t solve this task improving your SQL-statement, but you can try the following function using standard WordPress stuff: function show_latest48h_post_cf_in_term( $cpt, $tax, $term_slug, … Read more

Add a tag like a post

There is no native functionality in WordPress to relate posts to each other (only group posts with taxonomies). You will either have to develop custom solution, or try to make use of existing plugins. Posts 2 Posts is considered staple for post relationships.

Non-Recursive get_term_children()

Presumably you want to output term data, so you can use get_terms with the child_of argument, then iterate over returned terms and check that the parent of each term is your main term id: $parent_id = 42; $children = get_terms( ‘product_category’, array( ‘child_of’ => $parent_id ) ); foreach( $children as $child ) { if( $parent_id … Read more

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