Hustle OU
Forum Replies Created
-
Forum: Plugins
In reply to: [NS Cloner - Site Copier] Target Site URL as Domain NameIn the “Create New Site” section, I suggest implementing a dropdown selector.
The options would be: subfolder, subdomain, domain
Right now the only pre-defaulted option is subdomain, and that’s not always the case.
Forum: Plugins
In reply to: [NS Cloner - Site Copier] Target Site URL as Domain NameNo extra plugin or configuration, apart from a few lines in the wp-config.php file to handle COOKIES properly. It is something that can be done with WordPress, without any issue. The thing is that few people know about this.
Forum: Plugins
In reply to: [W3 Total Cache] Which cache type affects shortcodes?I managed to make this work, that means, for the shortcodes not to get cached, by checking this option:
Page Cache > Advanced > Late Initialization
Ok, got it! Maybe you can provide a link to a documentation that explains this? And maybe add it in the plugin interface for better clarification.
Forum: Plugins
In reply to: [Disable Gutenberg] Incompatibility with Breakdance BuilderIt was due to a problem with the wp_user_roles row in the wp_options table.
For example, I have tried to modify the code a little bit. Instead of running as a Shortcode, I run it Auto-Insert > Frontend Only – This is the updated code:
// Define the function that returns the domain name
function display_domain_name() {
// Get the site URL
$site_url = get_site_url();
// Parse the URL to get the host
$parsed_url = parse_url($site_url);
$domain = $parsed_url['host'];
// Return the domain
return $domain;
}
// Create the shortcode and map it to the function
function register_domain_name_shortcode() {
add_shortcode('domain_name', 'display_domain_name');
}
// Hook into WordPress to register the shortcode
add_action('init', 'register_domain_name_shortcode');In this case, it is working properly.
So I am not sure why in the first scenario, it is not working.