Plugin permissions for Editor role

manage_options is an admin role so I’d still try and changing it even if you’ve changed the roles elsewhere. See http://codex.wordpress.org/Roles_and_Capabilities#Editor for more info. Try the following: add_options_page(‘Orbisius Simple Notice’, ‘Orbisius Simple Notice’, ‘edit_others_posts’, __FILE__, ‘orbisius_simple_notice_options_page’);

How to add a link to our wp.org profile from wordpress.org plugin page?

The link was created automatticly, if you have a profile on wordpress.org. As example: see my profile: http://profiles.wordpress.org/bueltge/ and see also a plugin of my, same user-slug: http://wordpress.org/plugins/adminimize/ But it is important, that you write case sensitive. The user must include in the readme of the plugin, on the string Contributors:. See also a example … Read more

Allow multiple selection of user roles

You can create a custom role that will hold capabilities of the multiple roles you want and assign that single custom role. or you can simple do this by code, a user’s role can be set by creating an instance of the WP_user class, and calling the add_role() ex: $user = new WP_User( $user_id ); … Read more

Plugin option default value

There are two errors in your code. “echo’plugins_url( ‘/image/top.png’, __FILE__ )'” is not executed, it is just a string that happens to look like PHP code. What you really want is: $arr = array( “top_image”=> plugins_url( ‘/image/top.png’, __FILE__ ) ); Do not store default options in the database. Use the second parameter for get_option( $option, … Read more

Not able to override plugin’s default css rules

If you want to do it this way, it has to look like the following: add_filter(‘style_loader_src’, ‘wpse127340_replace_stylesheet’, 10, 2); function wpse127340_replace_stylesheet($src, $handle){ if (‘your-plugin-script-handle’ == $handle) return get_template_directory_uri().’/css/themes-copy-of-plugin.css’; return $src; } Replace your-plugin-script-handle and themes-copy-of-plugin.css with what you want it to be.

How to check homepage contain blog post?

In the case of expound theme index page is used as homepage, and there is no static front-page in the theme. Try to add is_home() to the condition. function addtoexcerpt($excerpt) { ob_start(); $values = ob_get_clean(); return $values.$excerpt; } if( is_single()||is_category()||is_home() ) { add_filter(‘the_excerpt’,’addtoexcerpt’); } I hope this should help you.

WordPress meta-box and checkbox-list

The issue is probably with the $single parameter of get_post_meta function. Try setting it to false or delete it. Codex Link Then, $omc_os_poker_room = get_post_meta(get_the_ID(), ‘omc_os_poker_room’); echo ‘<p class=”omc-info-one”><b>OS: ‘.$omc_os_poker_room[1].'</b>’; Not tested, but should work.