How to load different css file for different pages

You can achieve this using conditionals inside the function enqueuing your styles. function wpdocs_theme_name_scripts() { wp_enqueue_style( ‘global’, get_stylesheet_uri() ); if ( is_page(5) ) { wp_enqueue_style( ‘page-five’, get_stylesheet_uri() . ‘/page-five-styles.css’ ); } } add_action( ‘wp_enqueue_scripts’, ‘wpdocs_theme_name_scripts’ ); If you wanted more control over both the markup of your page and the CSS files you load, you … Read more

Can I list all installed plugins/versions and wp version from API

Yes, there is a way to get that information programmatically. WordPress Version Info The WordPress version exists as a global, but you can also get it using the get_bloginfo() function: global $wp_version; echo $wp_version; // OR $wordpress_version = get_bloginfo( ‘version’ ); echo $wordpress_version; Plugin Info For retrieving plugin info, use the get_plugins() function. You’ll need … Read more

Adding Featured Image in Post List

Yes, it can be done very easily. There is a great tutorial by Misha Rudrastyh on how to add Featured Images to Quick Edit. I recently applied it and can confirm that it works. You will be able to see the featured images in the admin area post lists and easily change them using Quick … Read more

How get list of updates of wp site?

When on the admin view you can use the following functions to get update data. get_plugin_updates() get_theme_updates() get_core_updates() If you want to build your own functions, then you can get update related data from site transients update_themes, update_plugins, and update_core. Then you can compare the plugin and theme transients with the theme and plugin arrays … Read more

Do Plugins effect site loading time?

Yes, Plugins effect site loading time. There are many poorly written Plugins that make unnecessary database queries and load numerous files to the page. The extra JavaScript and CSS files are not that big of deal unless you are using numerous plugins. I have worked on large sites that had 30 or 40 active plugins … Read more

Open external links in a new window

Yup can be done with javascript. var $j = jQuery.noConflict(); $j(document).ready(function() { //external attribute $j(“a:not([@href*=http://YOURSITE.com/])”).not(“[href^=#]”) .addClass(“external”) .attr({ target: “_blank” }); });

Two embedded gallery in one post

You can create two different posts, each containing a different gallery. These can be drafts or private or whatever. Then you can include their galleries into a different post by specifying their post IDs in the gallery shortcode.