Tag archive page not working

Your tag archive hasn’t stopped working because it never existed to begin with. WordPress displays items via the main loop and this takes 2 forms: Individual Posts Post archives If you want to list the categories or tags of your site, you’ll need to create a page for that and use code be it via … Read more

PHP Mistake – Whats wrong here?

From the official code reference: wp_redirect() does not exit automatically, and should almost always be followed by a call to exit; So, you need to call exit after the redirect: $curauth = (get_query_var(‘author_name’)) ? get_user_by(‘slug’, get_query_var(‘author_name’)) : get_userdata(get_query_var(‘author’)); if ( get_user_role($curauth->ID) === ‘subscriber’ ): wp_redirect( ‘http://redirect-here.com’ ); exit; //here! endif;

How is this URL being redirected?

You can add ?offers=/http://tracking.affiliate-link.com&aff_id=123 after your link and then check in the destination page (in this case the homepage) if is set $_GET[‘offers’], and in the case that it is, redirect to the content of the var, which is the url. In the WordPress system I would create a page called “Offers” that would be … Read more

I have cloudflare flexible enabled, How to redirect to https for Nginx server

There are several ways to enable https on your wordpress site. You need to update your site urls including https in it if you have access to your dashboard You can also define both the WP_SITEURL and WP_HOME in your test wp-config.php define( ‘WP_SITEURL’, ‘http://example.com.mytestdomain.com’ ); define( ‘WP_HOME’, ‘http://example.com.mytestdomain.com’ ); In relation to your nginx … Read more