Top "Wordpress" questions

This tag is for programming-specific questions about the WordPress content management system.

WooCommerce: Finding the products in database

I'm creating a website using WooCommerce and I want to restrict the available products to users depending on the postcode …

mysql database wordpress woocommerce product
How to add Class in <li> using wp_nav_menu() in Wordpress?

I am using wp_nav_menu($args) and I want to add my_own_class CSS classname to the <…

wordpress
Relative URLs in WordPress

I've always found it frustrating in WordPress that images, files, links, etc. are inserted into WordPress with an absolute URL …

wordpress
WordPress query single post by slug

For the moment when I want to show a single post without using a loop I use this: <?php $…

php wordpress
How to add "active" class to wp_nav_menu() current menu item (simple way)

I am creating custom Wordpress theme using a starter theme _Underscores. I am also using Bootstrap as a front-end framework. …

wordpress menuitem
Remove category & tag base from WordPress url - without a plugin

I would like to remove the category & tag base from WordPress URL. I have come across other posts and …

wordpress categories base
How to modify WooCommerce cart, checkout pages (main theme portion)

I have been researching and tweaking away at my custom Wordpress theme and overridden WooCommerce templates with now WooCommerce installed …

php wordpress woocommerce
WooCommerce return product object by id

I am creating a custom theme for woocommerce and I need to be able to create a mini product display. …

php wordpress woocommerce
wp_nav_menu change sub-menu class name?

Is there a way to change the child <ul class="sub-menu"> generated by WordPress itself to a custom …

wordpress