Tag Info

New answers tagged

-1

also try "load-post-new.php" for new pages


0

The comments section is quite a big section to properly explain, but here are the basics First, here is the "Settings >> Discussion screen It is here that you set how and when comments will be displayed on the front end on posts. Here is a quick description of the most important setting Allow people to post comments on new articles >> Comment section ...


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'; }


0

The logo is written into the CSS and the link text and target are filterable: 105 /** 106 * Filter link URL of the header logo above login form. 107 * 108 * @since 2.1.0 109 * 110 * @param string $login_header_url Login header logo URL. 111 */ 112 ...


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; ...


-1

It's simple function my_custom_logo() { echo '<script>jQuery("#header-logo").html("<h1>My Text Logo</h1>")</script>'; } add_action('admin_head', 'my_custom_logo');


0

This has probably been solved many times here on this site, but maybe not with all your requirements? So let me try to answer it here: You can try to use the all_admin_notices and in_admin_footer actions, wrapped inside the load-edit.php action to target the edit.php page: add_action( 'load-edit.php', function(){ $screen = get_current_screen(); ...


0

I've had this happen to me in the past at least 3-4 times but I don't really know what caused it. More often than not I was able to solve it by deleting the menu I was having problems with and creating a new one.


-2

You need to save the menu name first when you create it. After which you can add menu items to the menu. There may be issues with a conflict on the name of the menu. The database updates with WordPress 3.8.1 may have not update. Try re-updating Wordpress, if that doesn't work, and it isn't an issue with plugins then go to the next paragraph. Also for me ...


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 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

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 ...


0

Mike's tutorial on this is great! I probably would not have bothered adding this functionality to my Media Categories plugin if I would have had to figure it out on my own. That said, I think using parse_query and then get then query for the term isn't necessary. It's cleaner for create your own custom walker class. Maybe that wasn't possible when he wrote ...


0

Some of the answers given can be fine but I think none of them warranty to do what is asked because none of the answers checkk user roles, just capabilities and capabilities can be assigned to different roles. Also is required to allow access to profile. Here a sample code to allow users to access to profile while only admins will have access (and see) other ...



Top 50 recent answers are included