Working with post values in the admin panel

I solved it this way <form name=”input” action=”<?php echo get_bloginfo( ‘template_directory’ ).”https://wordpress.stackexchange.com/”.’post_options_from_form.php’; ?>” method=”post”> although i wanted post_options_from_form.php to be an admin page. Edit: This finally worked as i was able to post to the admin page i created <form name=”input” action=”admin.php?page=admin_page” method=”post”> On the function, function admin_page() { require(‘post_options_from_form.php’); }

Modify admin panel tab position

Just in case anyone might stumble upon this and have the same problem, it can be done by manipulating the admin menu itself, and there’s a great tutorial for this http://wp.tutsplus.com/tutorials/creative-coding/customizing-your-wordpress-admin/

Show posts of parent in edit.php

If you are using just using 4 posts, I think that schools would better be suited as taxonomy terms rather than a post type. Associate your Posts with the school tax term. I would then create custom templates for each of those terms. taxonomy-schools-cambridge.php taxonomy-schools-teeside.php taxonomy-schools-newcastle.php taxonomy-schools-sunderland.php Within those templates, use a WP_Query object to … Read more

WP Login Button for current domain

<?php wp_loginout(); ?> Or <a href=”http://<?php bloginfo(‘url’); ?>/wp-login.php”>Login</a> What am I missing? http://codex.wordpress.org/Function_Reference/wp_loginout http://codex.wordpress.org/Function_Reference/bloginfo

How to align bold,italic and underline in wp-admin?

If it is editor mode specific, then make a CSS file named: editor-style.css and then add the following code into functions.php within PHP tags: // CUSTOM EDITOR STYLES // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); Now put some CSS code to match the site’s CSS into the … Read more

WordPress multiple user roles accessing on their information on one site?

You’ll need to combine some plugins and a couple of hooks. Apart from the role management, I’d recommend Adminimize: it’s quite powerful to clean up the dashboard based on user roles. And then: /** * When a registered user tries to visit a page for which he doesn’t have access, * i.e.: http:/example.com/wp-admin/plugins.php, * WordPress … Read more