Adding HTML to posts with certain tags?

Welcome to WPSE. Additional markup for certain posts is more appropriately included in the template for that content type. If these are blog posts, then single.php is the likely template used for display, depending on how your theme is structured. The likely problem with the code in your question is that you are not using … Read more

Override user-edit.php to design own profile page

Depending on the scope of your project, I would recommend either using ACF (Advanced Custom Fields) which will allow you to create custom fields in your user based on their level, which you can then output into your theme. The outputting part though will require some coding knowledge to do. The other option is to … Read more

How to remove the h6 tag for the entry-category Class

You don’t need functions for this, just look in your theme’s template files: For single posts check single.php and for blog archive/categories check archive.php. Change the <h6> in those php files to <div> or whatever you want. It would be wiser to override them with a child theme so you don’t lose your changes in … Read more

“uagb/section and uagb/columns block”

UAGB refers to Ultimate Addons for Gutenberg, a plugin that creates custom blocks for Gutenberg, the block-editor. If you wish to use the uagb/section block (which uses both Gutenberg and UAGB), you’ll need to install and activate the Ultimate Addons for Gutenberg plugin. If you already have that plugin installed and activated and the error … Read more

WordPress wp-admin redirect and exception

The plugin update checker is outputting something before the login redirection. The function wp_redirect() has to be called before anything gets echoed onto the screen. Try disabling the anps_theme_plugin and see if your login problem resolves. Edit: I use a more complicated logging system that prints out nice and pretty on a custom admin page, … Read more

How to change WooCommerce loop product title HTML output in single product page and archive page

The main problems with what you’ve got are tha your close bracket } for the is_product() case is in the wrong place: it should be before the elseif not at the bottom of the block. (This is what Tom meant by indenting your code correctly: if you’d indented each {…}, which your IDE will do … Read more