$bodyclasses = get_body_class();
foreach ($bodyclasses as $class)
echo $class;
Related Posts:
- Why isn’t is_page_template() adding a body class?
- Add a unique class to HTML tag/element
- Adding theme option values as custom body class
- Adding Custom Body Class for Page: Shop
- different body classes for each category
- How to check if a user exists by a given id
- Get list of years when posts have been published
- Redeclare a function in a child theme
- Do WordPress’ cron’s clean up expired transients?
- How to add first name & last name to default registration form?
- Masking logout URL
- How can I programmatically create “child” pages on theme activation?
- Add admin bar link to edit author
- Warning/Notice about functions.php
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- syntax for remove_filter in parent theme with class
- How to Acheive the custom woocommerce category template
- Can I remove the Rich Text box editor for a specific post?
- How to add CSS style sheet dynamically in wordpress
- How to update BuddyPress xprofile fields programmatically? [closed]
- Replace Archive Widget Link Text
- A snippet after every image
- Programmatically set page template based on page ID
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- wp_remote_post with ssl:// protocol
- Best way to programatically add “rel” attributes to page and post images
- Searching for content post
- Using separate .php file for functions – how to run on site?
- How to include local menu based on page id?
- How to add custom fields to my custom registration form
- Add Featured image column into wordpress admin on pages AND posts
- How can I change the do_action function in footer (copyright area)
- How to display post content instead of excerpt
- Access Plugin data from Functions.php
- Override a theme function in a child theme?
- changing behaviour of get_search_form
- Which action does wp_update_user triggers?
- Include default functions and methods
- Use register_setting() in a loop
- Dynamic dropdown from database table
- WordPress website Rs changed to currency symbol
- Functions in custom theme
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Attempt to change jQuery version caused White Screen of Death
- check if author has published posts in custom post type, then send mail
- paginate_links() don’t properly work in search.php?
- Difference b/w Simple function call & do_action call
- What’s wrong with my use of plugin_url()?
- shortcode help require
- Filter yoast canonical add_action priority [closed]
- Should I store functions in separate folder?
- How can I modify the element on all pages?
- AMP – Change rel=”canonical” from functions.php [closed]
- echo custom fields with AJAX
- the_password_form functions not working together
- Function filter breaking tag archive menus
- How to create a functions.php in child theme? [closed]
- wordpress get_post_meta give only first value
- How to echo the value of an array element using a function via a shortcode
- PHP 7.1 | Warning: A non-numeric value encountered in
- Convert multiple logos into the_custom_logo
- I can’t add CSS with functions.php
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- widgets not working
- search form leads to 404
- wp_get_archives() output
- hook for dashboard show_user_profile
- Get slug of current category in functions.php
- How to hide WooCommerce product title and short description to non logged in users?
- How to loop while adding data to database?
- Prevent wp_signon redirect on failed login for ajax login
- localize_script but data changes dependent on product ID
- is_email gives me error
- only update titles of single posts
- Post content overflows on my mobile phone
- OOP Switch statement with array as parameter
- Using AJAX on frontend: Synchronous XMLHttpRequest deprecation except for admin role
- how can I change the read more link destinations and direct all to the same page?
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- How can I stop the hook from breaking the login/logout function?
- Pagination won’t work on custom page
- Does WordPress function replace_hello() exists?
- Shortcode Function – Can’t get anything else to return after running shortcode within shortcode
- Using wp_localize_script in template file – is it secure?
- Trying to Add a LEFT Sidebar?
- Adding a meta box fields to child theme options page
- Adding a jQuery rotator function
- How to pass a variable from a template page to the child theme functions.php
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Settings in functions.php used by a plugin
- Can’t change excerpt length and more tag
- Echo a div to header.php from functions.php
- Remove theme, change theme button and WP version on “Right Now” admin dashboard?
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- Changed functions.php file and now site is blank [closed]
- Problem with removing characters “<” – WpAllImport