Automated Cat to Nav

add_action(‘created_category’, ‘auto_add_category_to_primary_theme_menu’, 10, 2); function auto_add_category_to_primary_theme_menu($term_id, $tt_id) { // Get menu assigned to the “primary” theme location $locations = get_nav_menu_locations(); if (!isset($locations[‘primary’])) return; $menu_id = $locations[‘primary’]; $category = get_category($term_id); if (!$category || is_wp_error($category)) return; // Prevent duplicates $items = wp_get_nav_menu_items($menu_id);…Continue reading

Automatically Set Featured Image from First Image in Post

function auto_set_featured_image() { global $post; if (!has_post_thumbnail() && $post->post_type == ‘post’) { $attached_image = get_children(“post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1”); if ($attached_image) { foreach ($attached_image as $attachment_id => $attachment) { set_post_thumbnail($post->ID, $attachment_id); break; } } } } add_action(‘save_post’, ‘auto_set_featured_image’);Continue reading

[advanced_tbsa_calculator]

/** * Shortcode: [advanced_tbsa_calculator] */ function advanced_tbsa_calculator_shortcode($atts) { ob_start(); ?> Parkland Modified Brooke Galveston Shriners–Cincinnati Rule of TenContinue reading

Docsbot with custom data

DocsBotAI.init( { id: ”, supportCallback: function ( event, history ) { event.preventDefault(); hideDocsBot(); }, identify: { name: yourtheme.user.name, email: yourtheme.user.email, userid: yourtheme.user.id } } );Continue reading

Debt

Loan Mechanic Give a Loan Loan Amount (1 – Your Cash Balance): Interest Rate (%): Select the Country to Give the Loan to: EldoriaAvaloraZephyriaNovariaSolaraFrostaraVerdaniaIgnisiaAquarionLunariaTerranoxCryostarPyronisAetherisNimbara Give Loan Loan NotificationsContinue reading

Local Novaria

Nation Details Industry Output Upgrade Level Income from Industry Percentage Contribution to Exports Investment Cost Divestment Yield Cash: Total Income (This Round): Debt: Select the Industry to invest in: ITAgricultureAutoDefenseFinancial Services Invest Select the Industry to divest from: ITAgricultureAutoDefenseFinancial Services…Continue reading