Image crop, resize and compression plugin?
WordPress has cropping and resizing and rotation built in. Tutorial: http://www.wpbeginner.com/beginners-guide/how-to-crop-rotate-scale-and-flip-images-in-wordpress/
WordPress has cropping and resizing and rotation built in. Tutorial: http://www.wpbeginner.com/beginners-guide/how-to-crop-rotate-scale-and-flip-images-in-wordpress/
Your example works if I delete the newline. So this should work: function add_my_rule() { add_rewrite_tag(“%args%”, ‘([^/]*)’, ‘args=”); add_rewrite_rule(“writer/([^/]*)’,’index.php?pagename=writer&args=$matches[1]’,’top’); } add_action(‘init’, ‘add_my_rule’);
Just rename the plugin dir through FTP and it’ll deactivate. It’s probably clashing with another plugin…
Not tested, but try to do a post request via ajax. The file you call via ajax should look something like this: require( dirname(__FILE__) . ‘/wp-load.php’ ); $user = filter_input( INPUT_POST, FILTER_SANITIZE_STRING ); $pass = filter_input( INPUT_POST, FILTER_SANITIZE_STRING ); is_wp_error( wp_signon( array( ‘user_login’=>$user, ‘user_password’=>$pass ) ) ) ? die( -1 ) : die( 0 ); … Read more
If I were to approach this, I would create a custom post type to create and manage the posts, then loop through the custom post type to show the news messages. But if you don’t want to create posts to manage this, that option might not work for you.
WordPress has a built-in function called wp_enqueue_script() which will allow a certain piece of JavaScript to be included in a page. If you’d just like to see that script on a particular page, you can conditionally call it from the theme file. For example: <?php if (is_page(‘home’)) { wp_register_script(‘custom_script’, get_template_directory_uri() . ‘/js/custom_script.js’); wp_enqueue_script(‘custom_script’); } ?> … Read more
The way you’re using $wpdb->prepare doesn’t help anything. You have to properly prepare the values and then add them like with sprintf as %s or %d. Oh, and I don’t believe “working with WP ajax for over a year.”. In this case you would also know about the nopriv hooks for public usage 🙂 add_action( … Read more
I have done this in the past before, so I am reusing the code here. You will need to do some tweaking for it to mesh with your site. You will also need Peter’s Login Redirect plugin. I did not explain the code because it would take too much time to work through all of … Read more
welcome to WordPress Answers. I’m afraid there isn’t a (server-side) way of preventing posts being submitted. The hook that is fired when a post is saved, save_post, is fired after the post and its custom fields are saved to the database. However, you can always retrieve the custom field values, validate them and then delete … Read more
Most of the social media sharing plugins include an email option. I know sharedaddy (within jetpack) has a link that allows a permalink to be emailed to a given address.