WordPress Project Information
The Core contributors handbook provides a lot of detail about the development methodology and standards.
The Core contributors handbook provides a lot of detail about the development methodology and standards.
This might be caused by the mod_pagespeed Apache module. You should talk to your hoster to disable this.
I doubt there are any plugins out there that can do what you want “out-of-the-box”, however you could probably write a plugin to do what you’re looking for. Some basic boilerplate logic could look like function jcharnock_insert_post_category( $post_id, $post, $update ) { // Only run on inserts. if ( $update ) { return; } $title_categories … Read more
You can’t “delete” a field in MySQL, this only works for complete rows. However, you can unset values, meaning setting them to their original state, usually NULL or an empty string. $wpdb->update($wpdb->posts, array( ‘product_rank’ => NULL ), array( ‘ID’ => $post_id ));
Don’t put the full path to the file in wp_register_style() use plugins_url() to get the full url with just the path from the plugins folder. So change: ‘localhost/wordpress/wp-content/plugins/mein-plugin/style.css’ To: plugins_url( ‘style.css’, __FILE__ )
You just don’t do it. Manipulating directly the DB is dangerous, error prone and might fail when wordpress or plugins are upgraded or their configuration is changed. Just create a “one time” plugin that will properly use the relevant APIs to make whatever changes you need. Alternatively, if you need to do this from the … Read more
You don’t really need Jetpack to edit custom CSS on your site. WordPress supports this out of the box You can head to Appearance -> Customize where’ll you see a section to add Additional CSS: You need at least WordPress 4.7 and the edit_css capability to see this section. By default this capability maps to … Read more
WordpPress “out of the box” is not GDPR complaint. Even putting aside the integration with non complaint services like akismet and gravatar, just storing comments will probably require to give users the ability to delete them, but there is no real way to identify which users created which comment as comment authors are never verified. … Read more
This is actually not related to WordPress and applies to any website or blog: When an url is shared for the first time on Facebook, it visits the page to grab the title, image, description, etc. and keeps this info in cache for some time (this is the period referred to as an “unbelievably long … Read more
get_the_category() returns the array of WP_Term objects. So, // get all categories objects $categories = get_the_category(); // get the first category name if ( ! empty( $categories ) ) { $category = $categories[0]->name; } $output .= ‘<li><a href=”https://wordpress.stackexchange.com/questions/293636/” . get_the_permalink() . “https://wordpress.stackexchange.com/questions/293636/”>’; $output .= get_the_title() . ‘</a> ‘; $output .= $category .”https://wordpress.stackexchange.com/questions/293636/”; $output .= get_the_time(‘d … Read more