Tag Info

Hot answers tagged

2

Yes, you can do this with the plugin you linked, Private Messages for WordPress. Firstly, download version 2.1.09 - version 2.1.10 introduced mostly bugs, one of which excludes admins from the senders list. Open the file pm4wp.php and edit line 450 to: if ( current_user_can( 'administrator' ) ) { $users = $wpdb->get_results( "SELECT display_name ...


2

Depends on what you mean by "redirect". If you want to 404 them, this will do the job: add_filter('wp_die_handler','custom_404_die_handler'); function custom_404_die_handler() { global $wp; $wp->handle_404(); load_template(get_404_template()); die(); } If you actually want to redirect them somewhere, then you could do something like ...


1

Polylang seems to be a direct alternative to WPML. From the plugin description: Polylang allows you to create a bilingual or multilingual WordPress site. You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation of a post, whether it is in the default language or not, is ...


1

I use WordPress IP Blocker Pro which accomplishes all my worries. It has features like Auto-IP Blocking and Country Blocking as well.


1

As mentioned in a comment above the cookie solution will not totally do the trick. If it's ok that they can revisited the welcome page from a different browser or if they delete cookies. This is fine. If not I would use the database. I think easiest would be to regard the time the user was registered. Like if the user registered within the last 60 minutes ...


1

This plugin also does the job: http://www.jerrytravis.com/598/wordpress-plugin-to-generate-post-slugs However, as it only does it for posts which don't have a slug yet, if you need to regenerate slugs edit the following line in the plugin: if ($post->post_name == "") { for example, you could change it to: if (true) {


1

Why do you need a plugin for that? Set image quality to 100% in WordPress with following code. function my_new_image_quality( $quality ) { return 100; } add_filter( 'jpeg_quality', 'my_new_image_quality' ); add_filter( 'wp_editor_set_quality', 'my_new_image_quality' ); Now when you upload a image, WordPress always crop your image for different ...


1

How to make Time.ly all-in-one event calendar mobile friendly Anyway, now down to the actual "mobile" part of things. After creating a wonderfully responsive website for Tahlequah Public Schools and installing this awesome calendar plugin, I found I had an issue with the site being mobile-friendly still... My calendar looked awful on mobile: it displayed ...


1

You would think that it would be as simple as adding add_post_type_support( 'cptslug', 'page-attributes' ); to your code, but it isn't. If you check the source you will see that the template dropdown is restricted to the page post type only. There is also a note in the Codex and a reference to a closed Trac ticket on the topic. You can add that box to your ...


1

If you're adding a custom query within the template to load posts, the post type of that page doesn't have to be your custom post type. You can create a plain vanilla page, create a template for that via page-your_page_slug.php, or via a custom template assigned in the templates dropdown, then query for whatever post type you want via WP_Query. EDIT - ...


1

You need to redirect everytime WordPress looks for wp-login.php. You can do the same by using the below in your active theme's functions.php file. function redirect_login_page(){ // Store for checking if this page equals wp-login.php $page_viewed = basename( $_SERVER['REQUEST_URI'] ); // permalink to the custom login page $login_page = ...



Only top voted, non community-wiki answers of a minimum length are eligible