Custom user meta data [closed]

Read up on the documentation for the filter login_redirect And also see the answer to this question already answered I’m not totally sure what you are trying to do with the PIN – is that sent to the user via text/email or displayed on the page? Either way, the page you redirect to would need … Read more

Query Concatenation

In SQL statement use placeholders instead of variable: %s (string) or %d (number). The second argument of prepare() is array of variables to substitute into the placeholders. $skill_select = $wpdb->get_results( $wpdb->prepare(” SELECT skill_name, char_id, um_id, c.class_id FROM `wp_ml_skill_class` sc JOIN `wp_ml_skill` s ON (s.skill_id = sc.skill_id) JOIN `wp_ml_character` c WHERE c.class_id = %d AND c.char_id … Read more

Enclose article’s body with default shortcode

Thanks to @kero I have implemented this code: <?php echo do_shortcode(‘[responsivevoice voice=”Italian Female” buttontext=”Ascolta”]’.'<br>’.$bodyContent.'[/responsivevoice]’); ?> The $bodyContent variable contains the HTML value of the article’s body, obtained using this function: http://www.web-templates.nu/2008/08/31/get_the_content-with-formatting/index.html <?php $bodyContent = get_the_content_with_formatting(); ?>

Forbidden when I’m trying to edit one page

Found the problem, it was caused by ModSecurity module in CPanel. For unknown reasons, it blocks the edit of that WordPress page (only that page). I disabled ModSecurity and works now. I’ll contact my hosting company to see what’s wrong (I cannot make any configuration in my Cpanel for ModSecurity)