How can I redirect foreigners by IP to other URL in WordPress?

You could try using: http://ipinfodb.com/ip_location_api.php Send a get with the incoming ip adress and based on the response redirect it to a different part of your website. $request = new WP_Http; $result = $request->request( ‘http://api.ipinfodb.com/v3/ip-country/?key=<your_api_key>&ip=74.125.45.100’ ); I hope this helps.

How to delete all the options in an option group

Usually, the Codex is a good resource for doing research on things like this … and there are functions related to register_setting() listed directly on it’s page in the Codex. The function you’re looking for is unregister_setting(). From it’s Codex page: Description Allows clean de-registration of registered settings. Should be used mostly in deactivation hooks. … Read more

Attachment page custom title?

I believe that attachment.php is the template for attachment pages. So you can edit existing one or create new if you have none. You can also create different templates for different mime types: http://codex.wordpress.org/Template_Hierarchy Edit: Sorry, in a case you want to change HTML page title, you may want to use is_attachment() in header.php of … Read more

Custom Page Template and Category Exclusion

Try this code in your template. <?php /** * Template Name: Exclude Comic Category */ get_header(); ?> <div id=”primary”> <div id=”content” role=”main”> <?php query_posts( array( ‘category_name’ => ‘comic’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’ => 5 ) ); ?> <?php if ( have_posts() ) : ?> <?php twentyeleven_content_nav( ‘nav-above’ ); ?> <?php while ( have_posts() ) : … Read more

Menu System: Custom Links

sure, just click Screen Option on top, and check Link Target and you will have the option on the link to target the same or a different page

Sort posts with multiple meta_keys

WP_Query supports multiple values for the orderby argument (see the example from that link on the Codex. I don’t know if query_posts() does as well, but I suspect the pre_get_posts filter does, in which case you can replace query_posts() with that (which is the new “best practice” anyway).