Migrating October CMS to WordPress
Migrating October CMS to WordPress
Migrating October CMS to WordPress
Multisite Enhancements is plugin that apparently does a lot of stuff, including showing which blogs use which plugins. I haven’t had a chance to try it myself, but I’ve had my eye on it. If you wanted your own code, vs. using a plugin, I suppose you could poke around inside the plugin to see … Read more
if customizer(live preview) doesnt work or doesnt load and nothing is shown, try these steps: do you have redirections on the problematic site (double check and ensure, there might be coded a custom redirection in your plugins/codes)? while the circle is still loading, change any option in customizer and click “SAVE & PUBLISH” and see, … Read more
Any extra code on your server is a theoretical security risk. Instead of checking each plugin and theme if they are security risk even if they are not active, it is much easier to just delete them. This of course should not prevent you from backuping them first in case you will decide that you … Read more
Something went wrong with your installation. As commented by @Sumit get_header() is a core function and cannot be undefined. To troubleshoot: Reinstall WordPress and enable WP_DEBUG in wp_config.php: define( ‘WP_DEBUG’, true ); If it is on a live site you might want to use this instead: define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false ); This … Read more
Here is the answer: function bg_disable_front_page_wpseo_next_rel_link( $link ) { if ( is_front_page() ) { return false; } return $link; } add_filter( ‘wpseo_next_rel_link’, ‘bg_disable_front_page_wpseo_next_rel_link’ ); You have to return the $link, if you return nothing it will disable it for every single page…
You can set force a specific Admin Color Scheme pro user role through a function. Personally I would first take away the option to select the scheme from profile.php (Back-end Users/Your Profile) Below is just an example function which does set a specific color scheme for specific user roles. Please make first make a backup … Read more
At first, you should active the WordPress Debug mode to get the error after implement your code. The code should work, also tested on my environment. I use it on a client installation and works really well. See my source below. It is important that you use the right string for the theme slug, like … Read more
The reference to a post needs the item symbol within double curly braces: add_action(‘after_setup_theme’, function () { add_theme_support( ‘starter-content’, array( ‘posts’ => array( ‘home’ => array( // Use a page template with the predefined about page ‘template’ => ‘template-frontpage.php’, ), ), ‘options’ => array( ‘show_on_front’ => ‘page’, ‘page_on_front’ => ‘{{home}}’, ), )); }); And remember: … Read more
You can write your own endpoint and use wp_get_themes to get a list of themes via that. Here is a simple one: add_action( ‘rest_api_init’, function () { //Path to rest endpoint register_rest_route( ‘theme_API/v1’, ‘/get_theme_list/’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘theme_list_function’ ) ); }); // Our function to get the themes function theme_list_function(){ // Get … Read more