Update wordpress theme without customization loss

Download a copy of the theme – if it’s available in the WordPress repository, grab that. If it’s a premium theme, have the client provide their credentials to download, or just have them provide the .zip file directly. Make sure that you obtain the exact version that is being used on the client’s site – … Read more

How to code static pages in WordPress

Welcome to WPSE. Your question will likely be flagged and closed soon (out of scope for this site) but… Knowing that WordPress is a content management system, your content would ideally be editale in the CMS itself. The short answer to your question is “in the editor – your #1 scenario”. The editor supports markup … Read more

Overrite parent functions using child functions

You can’t just redeclare the function in the child theme or call add_action a second time. It doesn’t replace it, it adds a second hook. As a result, you haven’t overriden it, you’ve duplicated the original. Child theme overrides only work for templates. What’s more, by adding a second definition of wp_bootstrap_starter_custom_header_setup you’ve declared the … Read more

How do I find out what is in control over a certain part of a website?

However WordPress does it, it can’t peer inside BuddyBoss if BuddyBoss decides to implement its own system ( and almost all the pagebuilder plugins or bespoke systems do ). Fundamentally responsibility on the frontend falls into these buckets: the theme filters blocks/shortcodes/widgets nav menus plugins generated UIs such as ACF field layouts, WP Bakery, Elementor, … Read more

How do I get the trackback count of a post in wordpress without writing an SQL query?

You can specify what kind of comment you want to retrieve using get_comments(). // Assumes you’ve set $post_id somewhere. $args = array( ‘type’ => ‘trackback’, ‘post_id’ => $post_id, ); $trackbacks = get_comments( $args ); $trackback_count = count( $trackbacks ); Edited to add: As Sally CJ points out in the comments, you can do this in … Read more