Forbidden page on save
-
This code works in the function.php but when I try to include it as a code snippet when I save I get
Forbidden
You don’t have permission to access /wp-admin/admin.php on this server.
Any idea why please ?
/* this is to create a custom field*/
add_action ( ‘bbp_theme_before_topic_form_content’, ‘bbp_extra_fields’);
function bbp_extra_fields() {
$value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field1’, true);
echo ‘<label for=”bbp_extra_field1″>hashtag</label><br>’;
echo “<input type=’text’ name=’bbp_extra_field1′ value='”.$value.”<br>’>”;
$value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field2’, true);
echo ‘<br><label for=”bbp_extra_field1″>Twitter Name</label><br>’;
echo “<input type=’text’ name=’bbp_extra_field2′ value='”.$value.”‘>”;
}
- The topic ‘Forbidden page on save’ is closed to new replies.