How to get a custom taxonomy slug in body classes

To add the custom taxonomy slug to the body classes of your WordPress site, you can use the body_class filter along with your custom code. Below is your example of how you can achieve this: function themeprefix_add_taxonomy_class($classes) { global $post; if (is_page()) { $taxonomy = ‘page_section’; $terms = get_the_terms($post->ID, $taxonomy); if ($terms && !is_wp_error($terms)) { … Read more

How reorder post tags taxonomy in the non-alphabetical custom order and save it in the Block Editor

To reorder post tags taxonomy in a non-alphabetical custom order and save it in the Block Editor To achieve results use a combination of custom code. // Custom function to fetch tags in custom order function custom_get_tags($post_id) { $tags = get_the_tags($post_id); // Modify $tags array to reorder based on custom order // Your custom ordering … Read more

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