WordPress and $_GET Params

For custom parameters you should register them with WordPress: add_action(‘init’,’wpse46108_register_param’); function wpse46108_register_param() { global $wp; $wp->add_query_var(‘anyParamName’); } Then the value of ‘anyParamName’ can be found with get_query_var $anyParamNameValue = get_query_var(‘anyParamName’).

How to set global variable in functions.php

You can turn your snippet into a function that returns the post thumbnail URL of a post: function wpse81577_get_small_thumb_url( $post_id ) { $thumbSmall = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), ‘small’ ); return $thumbSmall[‘0’]; } Usage, supplying the ID of a post: <?php echo wpse81577_get_small_thumb_url( 59 ); ?>

Run WordPress frontend and backend in different domains

There’s no need to do it the way you mean. There are ways to host multiple SSL websites on a single domain both with Apache and Nginx, and it’s much easier to implement than your idea. Check out these tutorials: https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-apache-on-ubuntu-12-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-nginx-on-ubuntu-12-04

How to remove /index.php/ from URL’s

This is usually a permalink issue. Go to your WordPress dashboard then look for Settings>Permalinks. There will be radial selectable options. You can select any that have no mention of index.php. Alternative select Custom Structure then in the field to the right insert /%monthnum%/%day%/%year%/%postname%/ then save with the button at the bottom of the page. … Read more

Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page

Supposing you have a page created with the slug “referral”, you can add another segment to the page URL containing the employee ref number like this: 1- Register a new query variable e.g “employee_ref” add_filter(‘query_vars’, function ($query_vars){ $query_vars[] = ’employee_ref’; return $query_vars; }); 2- Using add_rewrite_rule function, add a new rule for the ’employee_ref’ to … Read more