pfernandezm59
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Fatal error: Allowed memory size of 50331648 bytes exhaustedRESOLVED!!
Changing the amount of memory in wp-settings.php from 32 to 64MBdefine(‘WP_MEMORY_LIMIT’, ’64M’);
insyead of
define(‘WP_MEMORY_LIMIT’, ’32M’);
Thank You!
Forum: Fixing WordPress
In reply to: Logout and redirectThe login-with-ajax plugin is perfect for doing so!!!
THANKS!!!!Forum: Fixing WordPress
In reply to: Display name of logged userWorking Fine!!!
thank you very much numeeja!!Forum: Fixing WordPress
In reply to: Display name of logged userIt works fine, but one comment. Is it possible that the phrase: ‘You are logged in as: ‘ would appear only if the users are logged in?
Maybe an If.. loop?
ThanksForum: Fixing WordPress
In reply to: Replace WordPress logoThank You!!!.
Forum: Fixing WordPress
In reply to: List of top 10 authors in the blog with someThank you very much MichaelH
The code is working fine now!!!Forum: Fixing WordPress
In reply to: List of top 10 authors in the blog with somesorry, but not working for me. I copied and pasted in one post through my dashboard editor, and this is the result:
user_id); $uc[$bloguser->user_id]=$post_count; } arsort($uc); $maxauthor=10; $count=0; foreach ($uc as $key => $value) { $count++; if ($count <= $maxauthor) { $user = get_userdata($key); $author_posts_url = get_author_posts_url($key); $post_count = $value; echo ‘User ID ‘ . $user->ID . ‘ ‘ . $user->user_firstname . ‘ ‘ . $user->user_lastname . ‘ number of posts: ‘ . $post_count . ‘ author posts url: ‘ . $author_posts_url .”; $args=array( ‘showposts’=>1, ‘author’=>$user->ID, ‘caller_get_posts’=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?>
Any suggestions?
Thank you again MichaelHForum: Fixing WordPress
In reply to: List of top 10 authors in the blog with someThank you very much MichaelH, but I was wondering also How can I restrict that code only to show me top 10 authors ordered by $post_count?
Thank you, again