Importing media medium setting image gallery / image attachments
You can use this plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/.
You can use this plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/.
Use wp_signon(). Ex: $creds = array(); $creds[‘user_login’] = ‘example’; $creds[‘user_password’] = ‘plaintextpw’; $creds[‘remember’] = true; $user = wp_signon( $creds, false ); if ( is_wp_error($user) ) echo $user->get_error_message(); See Codex for more details about wp_signon().
$comment_id can be passed as second parameter to your function. Modify you add_filter: add_filter(‘comment_notification_text’, ‘myfunction’, 10, 2); Then get $comment and $post from $comment_id: function myfunction( $notify_message, $comment_id ) { $comment = get_comment( $comment_id ); $post = get_post($comment->comment_post_ID);
The found_posts property $p->found_posts will return it.
You’d use the add_theme_page() function. Basically, it’s the same as adding any other settings page, but instead of add_options_page(), you use add_theme_page(). More info: http://codex.wordpress.org/Creating_Options_Pages http://codex.wordpress.org/Settings_API http://codex.wordpress.org/Adding_Administration_Menus
the_tags() is simple for convenience, if you want more control over formatting, use get_the_tags() and output them however you want. EDIT – quick example for the template: <?php $posttags = get_the_tags(); if ($posttags) { echo ‘Read more about ‘; $tag_count = count( $posttags ); $count = 0; foreach( $posttags as $tag ) { $count++; if( … Read more
You have already figured it out but I will post an answer anyway for others. To alter a Query, that has already been set, the easiest way is to use query_posts(). Note this will only work if run before the loop. <?php query_posts(array( ‘post__not_in’ => array(1,2,3,4,’…’) )); ?> <?php if ( have_posts() ) : while … Read more
There will be several steps involved in this process, I’ll outline a few here to get you started. Step 1: Set up a Plug-in You can view some more info about them here. I won’t go over the header information in this answer because it’s pretty self-explanatory in that article and your values for it … Read more
Write a function that uses $wpdb->prefix as a fallback. Something like this: function wpse65880_table_with_prefix($table) { // should define array in config file, rather than hard coding $my_tables = array(“table1”, “table2”, “table3”, “table4”); if (in_array($table, $my_tables)) { // “qa_” should also be a config file setting return “qa_” . $table; } else return $wpdb->prefix . $table; … Read more
Rarely do I answer question with simply a plugin recommendation – and I’d never recommend a commercial one – but since there’s a really good plugin for the task of front end profiles/login and such out there, I cannot let it go unmentioned: Check out Theme-My-Login by Jeff Farthing. There ain’t no better solution. It’s … Read more