Where is my google maps on my page? [closed]

The map is output in the page template. A search of Github for the term skt_moveMap() (which seemed like a unique function name) revealed that the Google Maps code from your question is part of the “Contact page Template with Sidebar” (template-contact-with-sidebar.php) or “Contact page Template” (template-contact-page.php) templates included in themes from SketchThemes. Looking at … Read more

Add text to variable

You’ve commented out the line that does this: //$excerpt = $excerpt + $summarizer_add_html_trust_bulletpoints ; The only mistake is that you’ve used + instead of ., which is the correct concatenation operator in PHP. $excerpt = $excerpt . $summarizer_add_html_trust_bulletpoints;

Progmatically adding menu links to the default (Top) or Footer menu

You have to register the menu location first. Also, I’ve added else statement to be sure $menu_id is defined when menu exists. Otherwise, you’ll see the PHP Notice about undefined variable. WP_DEBUG must be turned on when you develop, that’s why you don’t see the notice. // Initialize name and location $menu_name=”Simple Inventory Menu”; $menu_location … Read more

shortcode not return any thing in Gutnburg

There are 2 major bugs here Problem 1: Your shortcode registration is invalid You should be seeing lots of messages about this in your PHP error log add_shortcode(‘splite’, ‘splite_article’); There is no function named splite_article, there’s a class function but the code didn’t tell it to use it. So instead of calling your shortcode function, … Read more

IF condition based on wp_remote_get output

Following would be the revised example code which you may want to try. function display_api_response() { $api_url = “https://randletter2020.herokuapp.com”; $response = wp_remote_get($api_url); if ( 200 === wp_remote_retrieve_response_code($response) ) { $body = wp_remote_retrieve_body($response); if ( ‘a’ === $body ) { echo ‘A wins’; }else { // Do something else. } } } add_action( ‘init’, ‘display_api_response’ ); … Read more

“uagb/section and uagb/columns block”

UAGB refers to Ultimate Addons for Gutenberg, a plugin that creates custom blocks for Gutenberg, the block-editor. If you wish to use the uagb/section block (which uses both Gutenberg and UAGB), you’ll need to install and activate the Ultimate Addons for Gutenberg plugin. If you already have that plugin installed and activated and the error … Read more