Browsing Tag


How to include WP_Widget from another file in main plugin file?

I tried to use the code bellow in my main file: define( 'MYPLUGINNAME_PATH', plugin_dir_path(__FILE__) ); include MYPLUGINNAME_PATH . 'class/class-widget.php'; Then I have a file class/class-widget.php

How to Include WP_Widget class in main plugin file

If I have a class xxxx_widget extends WP_Widget inside a php file, how can I include that file from the main file inside my plugin.

how to avoid bullets showing in main menu

i am working on a WordPress site, and my initial problem was that when i had a bullet, the text would wrap around it such

How to remove admin main menu name repetition

I have added an admin menu using add_menu_page. When there is a sub menu with add_submenu_page, The main menu name is repeating. How to remove

wp_get_attachment_image_src returns image on main domain, false on subdomain

I’ve got a multisite install in development where both the subdomains and the main site use the exact same page templates for showing data. However,

adding shortcode to the main menu

Is it possible to add shortcode to a main menu? I tried the following but no luck? add_filter('wp_nav_menu_items','add_nwadcart_widget_to_menu', 10, 2); function add_nwadcart_widget_to_menu( $items, $args )

Multisite new sites not found(404), main site still works

I followed wordpress guide to install multisite. My main site ( works well, my multisite is based on subdirectory i.e., (, however it doesn’t load

Display admin notice only on main dashboard page

I’m using following code to display a notification in the admin dashboard. I want to display only on the main dashboard page (index.php), however the

Back to Top 134692 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising