Tag Info

Hot answers tagged

2

There is even a better solution: a filter called plugin_locale. It filters the locale argument before using it in load_plugin_textdomain. add_filter( 'plugin_locale', 'mytheme_plugin_locale' ); function mytheme_plugin_locale() { return 'en_US'; }


1

Ok, I found a solution, and part of it is thanks to user kaiser above. Using a combo of that function (to find the info on each of my pages), I was then able to use code found here: https://gist.github.com/brasofilo/6947539 to pull it together and fill out the pointers appropriately. Here was my whole process: FIRST: I edited /wp-admin/post-new.php ...


1

You can use the wpmu_new_blog action to automatically set the default to 6 for new installs: function wpse_139900_default_posts_per_page( $blog_id ) { update_blog_option( $blog_id, 'posts_per_page', 6 ); } add_action( 'wpmu_new_blog', 'wpse_139900_default_posts_per_page' ); If you don't want your users to be able to change this setting, you can just ...


1

You have a slight syntax error here. You forgot $wp_query-> before the second have_posts() if ($wp_query->have_posts()) : while ( have_posts() ) : $wp_query->the_post(); to if ($wp_query->have_posts()) : while ( $wp_query->have_posts() ) : $wp_query->the_post();


1

You will first need to remove the wordpress logo from the login screen. The wordpress logo is added by css, so you will need to change the css and hook that to the login_enqueue_scripts action hook function my_login_logo() { ?> <style type="text/css"> body.login div#login h1 a { background-image: none; ...



Only top voted, non community-wiki answers of a minimum length are eligible