WordPress Archives - Freelance Web Developer Manchester | SEO Consultant

Registering and displaying custom menu in WordPress

add to your function.php file the following code : // my custom menu function mymenu_get_menu_items($menu_name){ if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { $menu = wp_get_nav_menu_object( $locations[ $menu_name ] );...

SQL query to export all WooCommerce products

If you want to get all the WooCommerce products ready to be saved into a CSV / Excel file run the following query:   SELECT ID, post_status, post_title, post_content, post_excerpt, guid FROM `wp_posts` WHERE (`post_status` = 'publish' OR `post_status` = 'draft') AND...