[Solved] Using get_theme_mod with checkbox to display content

Here is a modified version of your original code. Your echo statement isn’t right and really isn’t necessary. It’s probably better to jump out of PHP like I’ve done in the code below. Also, the unnecessary else statement was removed: <?php $servicescontent = get_theme_mod( ‘services-page’, 1 ); $abc = get_theme_mod( ‘services-check’, 1 ); $mod = … Read more

[Solved] How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

[Solved] [Solved] How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

[Solved] [Solved] [Solved] How to upgrade WordPress automatically?

By default WordPress automatically updates itself, plugins, and themes. If your WordPress install doesn’t do that then you probably have something that disables this. You can check your theme for something like this add_filter(‘auto_update_plugin’, ‘__return_false’); add_filter(‘auto_update_theme’, ‘__return_false’); And/Or in your wp-config.php define(‘AUTOMATIC_UPDATER_DISABLED’, true); define(‘WP_AUTO_UPDATE_CORE’, false); If your WordPress is not on a local machine and … Read more

[Solved] wp.getUsers XML-RPC method is returning only 50 users, how can i get all the users

I’m unable to find a XML-RPC method called wp.getUsers in wp-includes/class-wp-xmlrpc-server.php. Could it be, that you’re using an additional plugin that extends the basic behavior of WordPress? A simple google search for ‘wp.getUsers’ points me to the the github repo of Max Cutler and the class wp-xmlrpc-modernization. There you have a method wp.getUsers which accepts … Read more

[Solved] WordPress wp_nav_menu within iFrame

To get a working nav menu WordPress needs to be set up complete. My suggestion is to use add_feed(). Ignore the name, you get text/html as output. Let’s start with code <?php # -*- coding: utf-8 -*- /* Plugin Name: T5 Iframe Nav Menu Description: Display a nav menu in an iframe. Version: 2012.05.18 Refresh … Read more

[Solved] The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null

So, I was researching this topic a bit deeper. All answers found on this SE suggested disabling Gutenberg with a plugin. This couldn’t be a valid “fix” in my oppinion. After researching and browsing through the git issues of WordPress/gutenberg I’ve found a pretty easy solution for this problem. The user joshuafredrickson on the git … Read more

[Solved] Woocommerce category description as subtitle

There is an extra hook you can use for this woocommerce_archive_description, hook into it like this: add_action( ‘woocommerce_archive_description’, ‘wc_category_description’ ); function wc_category_description() { if ( is_product_category() ) { global $wp_query; $cat_id = $wp_query->get_queried_object_id(); $cat_desc = term_description( $cat_id, ‘product_cat’ ); $subtit=”<span class=”subtitle”>”.$cat_desc.'</span>’; echo $subtit; } } 0 solved Woocommerce category description as subtitle