SEO ( Mihai )

const DEBUG_SKINGURU24_SEO=false; /* * Urmatoarea functie doar pentru benchmarking snippet ul in dev process ( unused in prod ) */ function my_woocommerce_log_message($message) { if (class_exists(‘WC_Logger’)) { $logger = wc_get_logger(); $caller_function=”UNKNOWN”; $backtrace = debug_backtrace(); if (isset($backtrace[1])) { // The caller is…Continue reading

ACF: Author

// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading

Add SEO-friendly Breadcrumbs (copy)

// You can also use this snippet as a shortcode for more control. global $post; if ( ! is_home() ) { echo ‘ ‘; echo ‘Home / ‘; if ( is_category() || is_single() ) { the_category( ‘ / ‘ );…Continue reading

Add SEO-friendly Breadcrumbs

// You can also use this snippet as a shortcode for more control. global $post; if ( ! is_home() ) { echo ‘ ‘; echo ‘Home / ‘; if ( is_category() || is_single() ) { the_category( ‘ / ‘ );…Continue reading

Increase SEO Analyzer TimeOut

add_filter( ‘http_request_args’, ‘aioseo_filter_analyzer_timeout’, 1, 2 ); function aioseo_filter_analyzer_timeout( $args, $url ) { if ( ‘https://analyze.aioseo.com/v1/analyze/’ === $url ) { $args[‘timeout’] = 120; } return $args; – }Continue reading

Simple Table Of Contents (copy)

add_filter( ‘the_content’, function ( $content ) { // This snippet requires the DOMDocument class to be available. if ( ! class_exists( ‘DOMDocument’ ) ) { return $content; } if ( !is_single() || !in_the_loop() || !is_main_query() ) { return $content; }…Continue reading

Remove duplicate meta description

function remove_hello_elementor_description_meta_tag() { remove_action( ‘wp_head’, ‘hello_elementor_add_description_meta_tag’ ); } add_action( ‘after_setup_theme’, ‘remove_hello_elementor_description_meta_tag’ );Continue reading

Remove duplicate meta description

function remove_hello_elementor_description_meta_tag() { remove_action( ‘wp_head’, ‘hello_elementor_add_description_meta_tag’ ); } add_action( ‘after_setup_theme’, ‘remove_hello_elementor_description_meta_tag’ );Continue reading

Simple Table Of Contents

add_filter( ‘the_content’, function ( $content ) { // This snippet requires the DOMDocument class to be available. if ( ! class_exists( ‘DOMDocument’ ) ) { return $content; } if ( !is_single() || !in_the_loop() || !is_main_query() ) { return $content; }…Continue reading