Split database on large site?

What will be best way to split large database on single site, not multi-site wp installation? HyperDB is maybe for this (just, less than 10 webmasters managed to figure out how to install it, according to active installs). Currently site has about 350k posts, it is on good VPS. Site is running quite fast in fronted, opening pages, browsings… But it slows down at back-end when publishing new posts, every day lots of new posts are added. Site has this permalink structure: sitename.com/year/month/day/postid/post-name Practically just new posts are edited, and…

Web Design Weekly #209

Headlines Object-Oriented UX Quite an epic case study by Sophia Voychehovski that looks into how she went about designing a responsive experience for CNN. (alistapart.com) ES6 Overview in 350 Bullet Points (ponyfoo.com) Infographic Mega Bundle If you create infographics, you’ll find yourself saving tons of time with this incredibly massive mega bundle. Packed with a combination of 5 Infographic Bundles, you’re getting 1000s of graphic elements to put together the perfect infographic faster and easier than ever. Check it out. (mightydeals.com) Articles The struggles of publishing a JavaScript library An…

Remove current_page_parent nav class from blog index when in CPT

I’m trying to remove current_page_parent class from the blog index menu item (I got a custom page to display all blog posts and it is in the menu) when navigating custom post type archive page and custom post type posts. I’ve found similar questions but I can’t figure out how to solve it. In addition, I don’t have the current_page_parent when navigating the custom_post_type (I guess it is related). Source: https://wordpress.stackexchange.com/feeds

Unicode characters displaying as ? after import using WP Clone

I moved over a development site to the client’s hosting server using the WP Clone plugin. It seemed to work just fine, until I noticed a bunch of odd question marks where things like em-dashes and apostrophes should be. It appears to be a unicode issue, but the only difference I can tell between the two servers is that the client-side is using utf8mb4_unicode_c and my development server is using utf8_unicode_ci. If I copy and paste a page from the development side to the client side, it displays fine –…

Disable email notification after change of password

I want to disable the emailnotification if a user or an admin changes the password of a user. After some Googleling I came to find that I need to create a plugin and overwrite the wp_password_change_notification function found in pluggable.php. This is the plugin and function: <?php /* Plugin Name: Stop email change password Description: Whatever */ if ( !function_exists( ‘wp_password_change_notification’ ) ) { function wp_password_change_notification() {} } ?> I uploaded the file to my plugin folder and activated it in my admin panel! This needs to be done with…

Divi slider images not appearing

I’ve been using the divi theme for my website, and all of a sudden the images in the sliders haven’t been appearing. In the html the image is there, but it’s opacity is set to 0. Also, the slider navigation (arrows on the sides and position indicators) are enabled, but do not show as well. How would I fix this? Source: https://wordpress.stackexchange.com/feeds

Add `datetimepicker` to form

I have a form where i would like to add a datetimepicker(). I must be doing something wrong. I have done the following: In my header.php <?php wp_enqueue_script(« jquery »); ?> In my functions.php wp_enqueue_script(‘jquery-ui-datepicker’); wp_enqueue_style(‘jquery-style’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css’); In my template.php <form id= » » name= » » action= »<?php echo get_permalink(); ?> » method= »post »> <input type= »text » id= »MyDate » name= »MyDate » value= » »/> <input type= »submit » value= »Submit » name= »submit »> </form> <script type= »text/javascript »> jQuery(document).ready(function() { jQuery(‘#MyDate’).datepicker({ dateFormat : ‘dd-mm-yy’ }); }); </script> Here is the error: Uncaught TypeError: jQuery(…).datepicker is not a function I see the <input> element but if I click in it nothing…

Web Design Weekly #208

Headlines Design Systems Adam Morse is without doubt one of the most talented developers in the front-end space at this present time and in this piece he does a little brain dump about how he thinks about design systems and building things on the web. (mrmrs.io) If one hit a week isn’t enough, follow WDW on Twitter Articles Using Web Fonts In 2015 As with most aspects of web development the way we implement things changes all the time. In this post Anselm Hannemann explains the best way to currently…

Manually build WP_Query

I’m trying to manually build a query in ‘loop.php’ that outputs a list of 3 posts from a custom post type above the results automatically given when doing a search in WordPress. As such, I’ve got the following code that displays these results as I intended: <?php // The Query $query1 = new WP_Query( array( ‘post_type’ => ‘sdm_downloads’, ‘posts_per_page’ => 3) ); if ( $query1->have_posts() ) : echo ‘<div style= »background-color:#fffced; padding:10px;margin-bottom:20px; »>’; echo ‘<h3>Selected relevant items from our Briefings library:</h3>’; // The Loop while ( $query1->have_posts() ) { $query1->the_post(); <article class= »article-archive »…

How to set custom post type as post title to avoid ‘Auto Draft’

I am using a mixture of Advanced custom fields plugin and Custom post type UI to give my users some extra functionality. The problem I have is that I have serup a testimonials menu and in the list view all new posts appear as Auto Draft. Is there anyway I can make the field slug client_name act as the post title for the list view? Source: https://wordpress.stackexchange.com/feeds