Yoast Seo noindex added to pages outside wordpress

You can use the wpseo_robots filter (yoast documentation) to override that. Add something like add_filter(“wpseo_robots”, function() { return “index, follow”; }); before calling get_header() to overwrite what wpseo sets. Don’t put it in the functions.php of your theme, though, or it will be used on everything in WP.

WP-DBManager Plugin Can’t Find Mysql Path

I solved this with help from the main StackOverflow site. One of the commenters suggested that the open_basedir directive might be set in php.ini – and that was the issue. Here is the open_basedir setting: open_basedir = “/var/www/vhosts/lifering.org/:/tmp/” I created a hard link mysql (could have been a symlink) to /usr/bin/mysql in the /tmp directory … Read more

Custom priority with the_content filter based on user input

Save the priority in your options and pass that value to your add_filter: add_action( ‘template_redirect’, ‘wpse_81687_prepare_filter’ ); function wpse_81687_prepare_filter() { $my_options = get_option( ‘my_options’ ); $priority = isset ( $my_options[‘content_filter_priority’] ) ? $my_options[‘content_filter_priority’] : 10; add_filter( ‘the_content’, ‘ald_crp’, $priority ); } In my example I register the the_content filter during template_redirect because it is not … Read more