Adding custom avatar field to comments
There are some plugins that do this functionality of adding the Twitter avatar as the default user Avatar for WordPress, Twitter Avatar Reloaded Add Local Avatar
There are some plugins that do this functionality of adding the Twitter avatar as the default user Avatar for WordPress, Twitter Avatar Reloaded Add Local Avatar
I think that WordPress only apply jpeg compression and the quality can be only change by code. For example, add this code to the functions.php file of your theme or in a plugin: add_filter(‘jpeg_quality’, function($arg){ //Set compression quality from 0 to 100 return 100; });
For those running into issues in the future, this is what I did: I made my pre_get_posts function that queries the taxonomy as normal for testing if an taxonomy ID is not in a list: $q->set( ‘tax_query’, array(array( ‘taxonomy’ => ‘tax’, ‘field’ => ‘id’, ‘terms’ => tax_get_inactive(), ‘operator’ => ‘NOT IN’ ))); Then, I implemented … Read more
Ask for template when adding a new page
How to extract URLs from wordpress taxonomies
Try this: function custom_walker_nav_menu_start_el($item_output, $item, $depth, $args){ $output=”<div class=”buttons-“.$item->ID.'” title=”some_title”>’; $output .= $item_output; $output .= ‘</div>’; return $output; } add_filter( ‘walker_nav_menu_start_el’, ‘custom_walker_nav_menu_start_el’ , 10, 4 ); This uses walker_nav_menu_start_el filter to add custom content before and after the link item. ID is appended to buttons-. If you need this customization for only specific menu then … Read more
Simlified function, maybe will help someone: jQuery(document).ready(function($) { $(“#page_template”).change(function() { if($(‘#page_template’).val() != ‘page-contacts.php’) { // show the meta box $(‘#postdivrich’).show(); } else { // hide your meta box $(‘#postdivrich’).hide(); } }).change(); }); Of course it lacks controls what fields will be submitted, because jQuery just hides them. As I am coding it for one-admin user … Read more
You could go around and not allow indexes? Add this to a .htaccess file, in the same directory as the .png and .mp4 files. Options -Indexes
Updating WordPress or plugins causes site issues (due to API, I think)
This isn’t strictly a WP question, but this should work – not necessarily the most efficient representation though: RewriteRule ^(.*mytheme/)pdf.php http://mysite.com/pdf This (http://martinmelin.se/rewrite-rule-tester/) is a very useful site for testing rewrite rules.