What is wrong here? Issue with post_id and meta_value

You’re close, but not quite. Try it like this: function jb_applicant() { $custom_fields = get_post_custom(2171); $op = ”; foreach ( $custom_fields as $key => $value ) { $op .= $key . ” => ” . $value . “<br />”; } return $op; } add_shortcode(‘applicant’, ‘jb_applicant’);

update_option creates an option, which empties on a blog reload

Where are you calling wp_applugin_options_process()? If you call it, and $_POST[“excludeid”] isn’t set, then you’re effectively calling: update_option(“wp_applugin_excludeids”, null ); So if you’re calling this function on every page load, or even just when your admin page is loaded, then you’re automatically deleting your option. You should put a check in your function to make … Read more

How to add a custom form to a plugin’s setting page

The fourth parameter of add_menu_page is the menu slug. Hence the form action should start with: admin.php?page=vsp_settings_page, if you want to stay on said page. If your form is correctly written, it should populate the query string in the URL. You should have probably posted all your form’s markup. Is there something along the lines … Read more

How does WP decide how to evaluate database integrity

I’ve finally found the answer. Yes WP was ‘triggered’ to think it was evaluating a WordPress and not a WordPress-MU table structure. This was caused by the following lines: define(‘WP_ALLOW_MULTISITE’, true); define( ‘MULTISITE’, true ); in the wp-config.php that should NOT be there in a WordPress-MU 2.9.2 installation (but that some former developer had tossed … Read more