post__in no longer works in wordpress 5.0.3
post__in no longer works in wordpress 5.0.3
post__in no longer works in wordpress 5.0.3
In the Widgets section, this particular btn_text is set to [and always will be] Download Latest Update. I have a function that collects some version information that I want to append after the default btn_text, ie. Download Latest Update **v1.0.11(2019)** The widget has a filter named button_text which you could utilize to customize the button … Read more
Actually, it is not the widget itself that is responsible for the broad structure. That is determined when a sidebar is registered. The widget instance itself, for instance, only stores the title. The html around it (in your case currently <h2>…</h2>, which you want to change to <a><h2>…</h2></a>) is set at the sidebar registration stage. … Read more
You will need to add “Custom Links” to your menu to point to the homepage + the specific anchor on the page. For example, your services section may have the markup: <section id=”services”> <h2>Services</h2> <p>Some text</p> </section> So your custom menu link would need to have a URL of /#services. You need the / slash … Read more
When editing in block editor, the post/article gets under the floating widgets
Alright, so I found it after some sleepless hours: The call to $this->get_field_id($key) in the Widget constructor was a mistake. It has to happen during the function form() (probably due to some usage of global variables* ) Most of the pain came from the fact, that it did not save the widget in the sidebar. … Read more
Please try this modified code: class widget007 extends WP_Widget { function __construct() { add_action(‘admin_print_styles-widgets.php’, array( $this, ‘load_color_picker_style’ ) ); $args = array( ‘name’ => esc_html__( ‘widget007’, ‘txt-domaine’ ), ‘description’ => esc_html__( ‘Something’, ‘txt-domaine’ ) ); parent::__construct( ‘my_widget007’, ”, $args ); } function load_color_picker_style() { wp_enqueue_style( ‘wp-color-picker’ ); wp_enqueue_script( ‘wp-color-picker’ ); wp_enqueue_script( ‘underscore’ ); } function … Read more
Sorting Tag Cloud by Popularity
You can add a menu item whose link goes to a specific section on the same page or a section on a different page. This works with any WordPress menu, which you can create and edit by clicking Appearance > Menus in the WordPress admin panel. This technique involves two steps: adding a unique ID … Read more
There is a filter, wp_audio_extensions, that should allow you to add m3u8 to the whitelist of allowed file extensions. Add this code to a child theme’s functions.php file, or using a plugin like Code Snippets: function wpse_341199_allow_m3u8_extension( $exts ) { $exts[] = ‘m3u8’; return $exts; } add_filter( ‘wp_audio_extensions’, ‘wpse_341199_allow_m3u8_extension’ );