how to redirect to a custom password retrieval page

not sure i really follow you either, BUT what about filtering the wp_lostpassword_url from wp-includes/general-template.php function wp_lostpassword_url( $redirect=”” ) { $args = array( ‘action’ => ‘lostpassword’ ); if ( !empty($redirect) ) { $args[‘redirect_to’] = $redirect; } $lostpassword_url = add_query_arg( $args, network_site_url(‘wp-login.php’, ‘login’) ); return apply_filters( ‘lostpassword_url’, $lostpassword_url, $redirect ); } looks like it has a … Read more

switch theme on fly

You can use Theme Switch and Preview. If you are up for coding this yourself, you can use the template and stylesheet filters. E.g.: to switch to Twenty Ten: function custom_load_twenty_ten_template() { return ‘twentyten’; } function custom_load_twenty_ten_stylesheet() { return ‘twentyten’; } add_filter( ‘template’, ‘custom_load_twenty_ten_template’ ); add_filter( ‘stylesheet’, ‘custom_load_twenty_ten_stylesheet’ );

Enable / Add Custom Keyboard Shortcuts To Work With WordPress’ HTML Editor

The toolbar / editor used on Stack Exchange websites (and in my plug-in WP-MarkDown) is PageDown. This comes with three JavaScript files: One that handles MarkDown to HTML conversion One that handles sanitization One that handles the editor (the toolbar and previewer) Included in the latter are the MarkDown keyboard shortcuts you mentioned. The following … Read more

How to search in a Custom Field?

The following function needs to be put in the functions.php of your template code. Or in a plugin. function custom_search_query( $request ) { $query = new WP_Query(); // the query isn’t run if we don’t pass any query vars $query->parse_query($request); $request[‘post_type’] = ‘LAW’; // this is the actual manipulation; do whatever you need here if(isset($_GET[‘search’])) … Read more

How to get shortcode working from custom meta field

You can do this by using ‘the_content’ filter. That way, WordPress will treat the content as it was came from the editor field and execute all the shortcodes: <?php $meta = get_post_meta($post->ID, ‘intSlider’, true); ?> <div id=”sliderWrap”> <div id=”slider” class=”floatLeft”> <? echo apply_filters(‘the_content’, $meta); ?> </div> </div> Just be careful because it will wrap the … Read more