remove_action from parent theme using child theme functions.php

Well, all I needed to fix the issue was to add the exact same priority to the remove_action and it worked pretty well, thanks to Sally CJ answer add_action( ‘wp_head’, ‘remove_site_hero_sections’); function remove_site_hero_sections() { global $theme_header_layout; remove_action(‘theme_site_header’, array($theme_header_layout, ‘site_hero_sections’), 9999); }

How to get specific multiple pages excerpts at homepage?

It looks like your loop is running through all the posts, your array of post id isn’t getting passed. However, you may be able to make the call using this code Get excerpt using get_the_excerpt outside a loop tl;dr $text = apply_filters(‘the_excerpt’, get_post_field(‘post_excerpt’, $post_id)); https://wordpress.stackexchange.com/a/150005/26744

How to pass parameters in wordpress shortcode?

As the docs for add_shortcode() state, Every shortcode callback is passed three parameters by default, including an array of attributes ($atts), the shortcode content or null if not set ($content), and finally the shortcode tag itself ($shortcode_tag), in that order. Use the shortcode_atts() to define what attributes are allowed and set default values for those … Read more