adding multiple custom columns to users.php
Correct to use echo not return. This is action, not the filter. And you can delete return $value; from your callback.
Correct to use echo not return. This is action, not the filter. And you can delete return $value; from your callback.
Can you clarify that a bit? It already allows for uploading of an image to be used as the category image. Are you looking to attach another image to the category for some other reason?
When you are on an author.php template page, you should be able to get the current author via $wp_query->get_queried_object(). That is also what is_author() uses when you want to check for a specific author. Do you also have a question about setting the cookies? I don’t think WordPress has specific cookie functions. wp_setcookie() is deprecated … Read more
you can use this custom function in the functions.php of the theme: /** * count for trackback, pingback, comment, pings * * embed like this: * fb_comment_type_count(‘pings’); * fb_comment_type_count(‘comment’); */ if ( !function_exists(‘fb_comment_type_count’) ) { function fb_get_comment_type_count( $type=”all”, $zero = false, $one = false, $more = false, $post_id = 0) { global $cjd_comment_count_cache, $id, $post; … Read more
See if this plugin suitable for your needs. http://wordpress.org/extend/plugins/weekly-schedule/screenshots/
yes there is WP Editarea plugin works on both plugin and theme editor. and there is Power Code Editor plugin
Your solution here is most correct.. if(have_posts()){ $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts($query_string . “&cat=4”); while(have_posts()){ the_post(); global $more; $more = 0; …but has some errors. Try: $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $category = get_category_by_slug(‘your-category-slug’); query_posts(array(‘paged’ => $paged, ‘cat’ => $category->term_id)); while(have_posts()){ the_post(); global $more; $more = 0; //output here } … Read more
<script type=”text/javascript”> function removeLink() { theAs = document.getElementById(‘lg_image’).childNodes; // get all children of div#lg_image for( i = 0; i < theAs.length; i++ ) { // loop through the children if( theAs[i].nodeType != 3 ) { // if the child is not a whitespace, theImg = theAs[i].innerHTML; // it is the a which contains the img, … Read more
Here is a complete tutorial with source files that do exactly what you want, You can upload multi images by cloning the input field and also you can preview, delete images with ajax, add multi metaboxes to multiple/different post types and more. http://www.deluxeblogtips.com/2010/05/howto-meta-box-wordpress.html And here you can find some good information on how you call … Read more
Hi @epaps: So I tested your code and it all works fine. The $post is passed in as an object and you have full access to the $post->ID variable. Best I can tell is that you have some kind of plugin interaction that is causing it to fail or that, for some reason the scheduled … Read more