Title: Gloria's Replies | WordPress.org

---

# Gloria

  [  ](https://wordpress.org/support/users/erfo/)

 *   [Profile](https://wordpress.org/support/users/erfo/)
 *   [Topics Started](https://wordpress.org/support/users/erfo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/erfo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/erfo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/erfo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/erfo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/erfo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/users/erfo/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/erfo/replies/page/3/?output_format=md) [→](https://wordpress.org/support/users/erfo/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ginger - EU Cookie Law] Google AdSense issue](https://wordpress.org/support/topic/google-adsense-issue-2/)
 *  [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/google-adsense-issue-2/#post-10331069)
 * I used:
    remove_filter( ‘ginger_script_async_tags’, ‘ginger_addsesneremover’ );
   copy and paste in functions.php file
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] W3 Cache / WordPress 4.8.1 Compatibility issues?](https://wordpress.org/support/topic/w3-cache-compatibility-issues/)
 *  [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/w3-cache-compatibility-issues/#post-9414378)
 * The same problem after updating wordpress version (4.8.1).
    I can’t: – enable/
   disable plugins (sometimes) – edit options and widgets (in some websites)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Duplicate email addresses in wp_users](https://wordpress.org/support/topic/duplicate-email-addresses-in-wp_users/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/duplicate-email-addresses-in-wp_users/#post-7587383)
 * Thank for your answer.
 * I had an old database. I had a table with this fields: “id”, “title”, “content”,“
   email”, ecc…
 * So I converted the database.
    id => ID title => post_title content => post_content
   email => (I replaced the email address with the id) => post_author
 * BEFORE (example)
    id = 10 title = Hello! content = It’s ok email = [example@example.com](https://wordpress.org/support/users/erfo/replies/example@example.com?output_format=md)
 * AFTER (example)
    ID = 10 post_title = Hello! post_content = It’s ok post_author
   = 10
 * I created the new users with id and email addresses… So I have +5000 duplicated
   users with different id, but the same email addresses.
 * So I have a normal database with wp_users and wp_usermeta. The users has different
   ids, but duplicate email addresses.
 * I can go in Admin panel > Users > “Attribute all contents to a user” and assign
   the posts to a user, but I have +5000 users and I try something automatic…
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Add author dropdown to quick draft (dashboard)](https://wordpress.org/support/topic/add-author-dropdown-to-quick-draft-dashboard/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/add-author-dropdown-to-quick-draft-dashboard/#post-6517861)
 * I created a new function and added a select with post_author. It’s ok.
 * There is a problem. When I write the quick draft and click on the “save draft”
   button, the fields are not cleared…
 * The same thing happens when I copy the same code from dashboard.php and paste(
   I rename only the function, so the code is the same…).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest posts with same terms of the current post](https://wordpress.org/support/topic/latest-posts-with-same-terms-of-the-current-post/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/latest-posts-with-same-terms-of-the-current-post/#post-4548095)
 * Thanks, it works with a small edit.
    $terms generate already an array, so this`'
   terms' => array( $terms )` is (without “array”) => `'terms' => $terms`
 * The final code:
 *     ```
       $terms = wp_get_post_terms($post->ID, 'ingredients', array("fields" => "ids"));
       $args = array(
       		'posts_per_page' => 3,
       		'post_type'      => 'recipe',
       		'tax_query'      => array(
                       array(
       					'taxonomy' => 'ingredients',
       					'field'    => 'id',
       					'terms'    => $terms
                       )
                   )
               );
       $the_query = new WP_Query( $args );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [If I've 5.000 posts or pages? WordPress goes down?](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/#post-4301461)
 * Ok perfect. Thanks 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [If I've 5.000 posts or pages? WordPress goes down?](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/#post-4301459)
 * [@wpyogi](https://wordpress.org/support/users/wpyogi/): In this moment, I use
   the version 3.7.1
    … Many months/years ago I had the version 2.x.x. My permalink
   structure was `/%category%/%postname%/` and when I wrote ~1.000 posts, the blog
   crashed (the rules in the database are increased).
 * Now I have the version 3.7.1 and I’d like to use WordPress for my content (~ 
   5.000 post/page/post-type…) with the same permalink structure.
    Will I have some
   problem?
 * Thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [If I've 5.000 posts or pages? WordPress goes down?](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/#post-4301456)
 * Thanks for your answers.
 * This question because in the latest version (2.x.x) of WordPress I had some problem
   with the blog. I had ~1.000 posts and the permalink was `/%category%/%post-name%`.
   So, the blog crashed and it was very slow.
 * I know that the structure of the rules has been improved, and I wanted know if
   now it were possible with the same structure of the permalink.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [If I've 5.000 posts or pages? WordPress goes down?](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/if-ive-5000-posts-or-pages-wordpress-goes-down/#post-4301428)
 * The number of posts and pages are an example.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add rewrite rules with taxonomy](https://wordpress.org/support/topic/add-rewrite-rules-with-taxonomy/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/add-rewrite-rules-with-taxonomy/#post-4275394)
 * Nobody?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom post type: Archive template doesn't work](https://wordpress.org/support/topic/custom-post-type-archive-template-doesnt-work/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-archive-template-doesnt-work/#post-4273436)
 * I resolved. I wrote **has_archive => ‘true’** instead **has_archive => true**
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest post in home with different style](https://wordpress.org/support/topic/latest-post-in-home-with-different-style/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/latest-post-in-home-with-different-style/#post-2966998)
 * EDIT.
 * Sorry, your last code is correct and now it works.
    Thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest post in home with different style](https://wordpress.org/support/topic/latest-post-in-home-with-different-style/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/latest-post-in-home-with-different-style/#post-2966986)
 * So, I edit home’s code and changed your code:
 *     ```
       <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
   
       <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('thumbnail'); ?><br/><?php the_title(); ?></a>
   
       <?php endwhile; endif; ?>
       ```
   
 * but still doesn’t work… Now the home page isn’t blank, but the thumbanils aren’t
   alignment…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Latest post in home with different style](https://wordpress.org/support/topic/latest-post-in-home-with-different-style/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/latest-post-in-home-with-different-style/#post-2966981)
 * Hi alchymyth.
    When I add that code in functions.php, the home page become blank,
   so it dowsn’t work.
 * I have this code in home page:
 *     ```
       <?php $myposts = get_posts('numberposts=4&category=3');
       foreach($myposts as $post) : ?>
       <?php the_post_thumbnail('thumbnail'); ?>
       <?php the_excerpt(); ?>
       <?php setup_postdata($post); ?>
       <?php endforeach; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Comments number of a single user](https://wordpress.org/support/topic/comments-number-of-a-single-user/)
 *  Thread Starter [Gloria](https://wordpress.org/support/users/erfo/)
 * (@erfo)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/comments-number-of-a-single-user/#post-2868896)
 * I tried this function:
 *     ```
       function commentCount() {
           global $wpdb;
           $count = $wpdb->get_var('SELECT COUNT(comment_ID) FROM ' . $wpdb->comments. ' WHERE comment_author_email = "' . get_comment_author_email() . '"');
           echo $count . ' comments';
       }
       ```
   
 *  and doesn’t work, because it count only user comments in a post.
 * Ex:
    I’m in a page with ID=5, and I commented 5 time, the function counts 5 comments
   for me. I go in a page with ID=8, I commented 2 time, the function counts 2 comments
   for me. While, it should count 7 comments…
 * I added this code in a sidebar and it displays when a user is logged.

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/users/erfo/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/erfo/replies/page/3/?output_format=md) [→](https://wordpress.org/support/users/erfo/replies/page/2/?output_format=md)