[wpb-random-posts]
$args = array( ‘post_type’ => ‘post’, ‘orderby’ => ‘rand’, ‘posts_per_page’ => 5, );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
$args = array( ‘post_type’ => ‘post’, ‘orderby’ => ‘rand’, ‘posts_per_page’ => 5, );Continue reading
// This will output “Copyright © 2024” (or the current year) in the footer automatically. $copyright = “Copyright © ” ; $current_year = date( ‘Y’ ) ; $copyright_year = $copyright . $current_year ; // Add CSS classes for styling. For…Continue reading
// This will output “Copyright © 2024.” or the current year automatically. $copyright = “Copyright © ” ; $current_year = date( ‘Y’ ) ; $copyright_year = ‘‘ . $copyright . $current_year . ‘.‘ ; echo $copyright_year; // Style in CSS…Continue reading
// This will replace “[year]” with the current year automatically. $this_year = “[year]”; echo str_replace(“[year]”, date( ‘Y’ ), $this_year);Continue reading
if ( ! function_exists( ‘theme_setup_unocss_assets’ ) ) : function theme_setup_unocss_assets() { wp_enqueue_style( ‘unocss-reset’, ‘https://unpkg.com/@unocss/reset/tailwind.css’, array(), null ); wp_enqueue_script( ‘unocss-preset-uno’, ‘https://unpkg.com/@unocss/runtime/uno.global.js’, array(), null, true ); wp_enqueue_script( ‘unocss-preset-icons’, ‘https://unpkg.com/@unocss/runtime/preset-icons.global.js’, array(), null, true ); wp_add_inline_script( ‘unocss-preset-icons’, ‘window.__unocss = { presets: [ () =>…Continue reading
.sb-feed-header-profile { display: none !important; } .sb-feed-header-btn-ctn { display: block !important; width: 100% !important; } .sb-feed-header-btn-ctn button { width: 100% !important; font-size: 20px !important; }Continue reading