WordPress Multiple Navigation bars

Most WordPress themes take advantage of a function called body_class() which outputs specific classes to the body tag. Implementation looks something like this: <body <?php body_class(); ?>> This will put a unique class on the homepage of your website that won’t be on any of the other pages so you could target that specifically in … Read more

Breaking up CPT output into two columns

Don’t run the query twice. Use get_posts($args) instead of new WP_Query. Then use array_slice() to generate to arrays of equal length and loop through them that way. array_slice() help: https://stackoverflow.com/questions/5393028/how-can-i-take-an-array-divide-it-by-two-and-create-two-lists

Access Child Class of Plugin Main Class Instance

If you want to get a hold of the WC_Freshdesk instance without re-instantiating it then call: $integrations = WC()->integrations->get_integrations(); remove_action(‘woocommerce_view_order’, array($inegrations[‘wc-freshdesk’], view_order_create_ticket’), 40 ); Note: I’m just guessing the key of wc-freskdesk, inspect the array otherwise The call to WC()->integrations->get_integrations() returns all the integrations that were instantiated early in the woocommerce init process, you can … Read more

Remove   from shortcode

This could be due to the do_shortcode running through wpautop, see here for details on disabling that: https://stackoverflow.com/questions/5940854/disable-automatic-formatting-inside-wordpress-shortcodes But as frogg3862 said, what you need to do instead of that is to just trim out the beginning and ending whitespace from $content to prevent the non-breaking space from being automatically added. function infoButton($atts, $content = … Read more