Use local image for default avatar
You have the Photon module enabled in the Jetpack plugin. That module routes your images through WordPress.com’s CDN. If you don’t want this to happen, disable the Photon module in Jetpack.
You have the Photon module enabled in the Jetpack plugin. That module routes your images through WordPress.com’s CDN. If you don’t want this to happen, disable the Photon module in Jetpack.
Is it possible to set different WP_CONTENT_URL values for different sub-sites in wp-config.php ? Ans: Yes it is. If sub sites are installed on sub-domain, An example to define it this way – define( ‘CURRENT_SITE_DOMAIN’, $_SERVER[‘HTTP_HOST’] ); if( ‘sub1.domain.com’ == CURRENT_SITE_DOMAIN ){ define( ‘WP_CONTENT_URL’, ‘http://sub1-abcdefghijk.cloudfront.net/wp-content’ ); } elseif( ‘sub2.domain.com’ == CURRENT_SITE_DOMAIN ){ define( ‘WP_CONTENT_URL’, ‘http://sub2-abcdefghijk.cloudfront.net/wp-content’ … Read more
If you need to retain only images for last 50 posts, I don’t think that a cron job or a WP cron is the best thing you can do, in WordPress you can know when a post is published, and you can run a routine everytime it happen, deleting images for the post pubblished 50 … Read more
You Could, but I would never ever mess with core files. Apart from that I do not believe that the is_blog_installed() function causes your site to be unresponsive. Try disabling all plugins first, and set the theme to one of the default themes. Updating your site, plugins and themes could help you as well. Try … Read more
I believe the issue here is a problem with vernacular. is_active_sidebar isn’t page specific — just checks to see if it has data within it throughout the entire site. You are asking a different question. Sounds like you are asking “does this template reference and sidebars AND do any of those sidebars have data in … Read more
More than likely this is an issue with the register_sidebar() call in functions.php. Look for before_widget and after_widget. The code below is the default usage. ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</li>’, Note: This will alter all of the widgets within the sidebar, not just the TextWidget.
I would suggest using WP_Query() instead. Like so: <?php $category = ‘whatever’; $new_query = new WP_Query( array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1, ‘category_name’ => $category; ) ); if ($new_query->have_posts()) { $i = 0; while ($new_query->have_posts()) { $new_query->the_post(); $postid = get_the_ID(); // Your output code. } } wp_reset_postdata(); ?> Merely change $category to whatever you … Read more
The days of the week shortcodes aren’t needed. Also, the way you’re trying to use them isn’t allowed. Why not just use the title and do what you want in the books shortcode? function books($atts, $content = null) { $atts = shortcode_atts( [ “name” => ”, “day” => ”, “title” => ”, ], $atts ); … Read more
Basically, that is what Child Themes are meant to be, you have the need to modify the theme, but you shouldn’t do it directly on the theme since the updates will mess you up, instead, you do all your customizations and new features on your Child Theme so you will be alright. From codex. If … Read more
your conditional breaks the concatenation of the strings (which is not in your code, anyway) try to re-write this section: function info($atts, $content = null) { extract(shortcode_atts(array( “name” => ”, “image” => ”, “address” => ”, “phone” => ”, “email” => ”, “website” => ”, “description” => ”, “amenities” => ” ), $atts)); $output=”<span class=”sort”>”; … Read more