the_post hook is not firing for me

Assuming that your post_meta is being properly added, that the post in question is a real post, and that the value of ‘nb_postredirect’ is a good URL, I’d try: function nb_checkredirect( $post ) { //don’t have to use get_post_meta!* if ( $post->nb_postredirect ) { wp_redirect( $post->nb_postredirect ); exit; } } add_action( ‘the_post’, ‘nb_checkredirect’ ); Tested … Read more

redirected you too many times

Having identify the plugin causing the issue with your site, you need to uninstall it in order to return everything back to normal. Since you can currently not access your site but WordPress administration dashboard as well, you can still uninstall the really simple ssl plugin either through your cPanel, FTP, or database. If you … Read more

Bulk update wordpress posts

One implementation detail of how WP works with database is that it always drags all query results into PHP values and memory space. In other words it is highly unlikely to throw any heavy query at WP and not have it collapse. Notably any plugins that deal with large queries (such as database backup ones) … Read more

How to show the number of website visitors in my theme

Here is what you need to use for the expected result: <p> Today’s Views: <span> <?php echo wp_statistics_visit(‘today’); ?> </span></p><br><br> <p>Yesterday’s Views: <span> <?php echo wp_statistics_visit(‘yesterday’); ?> </span></p><br><br> <p>All times Views: <span> <?php echo wp_statistics_visit(‘total’); ?> </span></p><br><br>