Title: john_harrison's Replies | WordPress.org

---

# john_harrison

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

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

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [paginate_links](https://wordpress.org/support/topic/paginate_links/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/paginate_links/#post-4004959)
 * Got my answer…
 * If anyone was wondering, just use this:
 *     ```
       <?php 
   
            global $paginated_query;
            global $wp_query;
   
            if ( !$paginated_query ):
             $paginated_query = $wp_query;
            endif;
   
            if ( $paginated_query->max_num_pages > 1 ) : ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Co-Authors Plus] Authors disappear when post saved](https://wordpress.org/support/topic/authors-disappear-when-post-saved/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/authors-disappear-when-post-saved/#post-3154776)
 * Ignore me, I’m an idiot… just re-installed it and it works great!
 * Thanks so much for this superb plugin guys!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Co-Authors Plus] Authors disappear when post saved](https://wordpress.org/support/topic/authors-disappear-when-post-saved/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/authors-disappear-when-post-saved/#post-3154768)
 * I should add that when the post is saved, as above, the correct authors show 
   on the live page, but the authors are removed from the WordPress dashboard, and
   if the post is saved again, it reverts back to one author.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Plugins to share posts (Twitter, FB, etc), but using custom text](https://wordpress.org/support/topic/plugins-to-share-posts-twitter-fb-etc-but-using-custom-text/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugins-to-share-posts-twitter-fb-etc-but-using-custom-text/#post-2938071)
 * Should I post this under a specific plugin?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contextual Related Posts] [Plugin: Contextual Related Posts] Do tags affect this plugin?](https://wordpress.org/support/topic/plugin-contextual-related-posts-do-tags-affect-this-plugin/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-contextual-related-posts-do-tags-affect-this-plugin/#post-2908069)
 * Don’t get me wrong Ajay, it’s still brilliant. It’s working perfectly without
   using the tags anyway, it’s just that my boss asked me…
 * Appreciate the effort and thanks again,
 * John
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add Categories ID and/or Class to wp_list_categories](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/#post-2905007)
 * Thanks, this is great!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add Categories ID and/or Class to wp_list_categories](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/#post-2904970)
 * Also, for the category of each post, how would I assign a class to the category?
 * `<span class="post-category"><a href="http://localhost/wordpress/category/blog/"
   title="View all posts in Blog" rel="category tag">Blog</a></span>`
 * I would want to apply the name of the category as a class to the hyperlink tag.
   So the above should look like this:
 * `<span class="post-category"><a href="http://localhost/wordpress/category/blog/"
   class="blog-category" title="View all posts in Blog" rel="category tag">Blog</
   a></span>`
 * Thanks,
 * John
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add Categories ID and/or Class to wp_list_categories](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/#post-2904963)
 * Is there any way I can make the classes more meaningful?
 * cat-item-7 is a bit …. ya know 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add Categories ID and/or Class to wp_list_categories](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/)
 *  Thread Starter [john_harrison](https://wordpress.org/support/users/john_harrison/)
 * (@john_harrison)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/add-categories-id-andor-class-to-wp_list_categories/#post-2904961)
 * Thanks for the quick reply|
 * John

Viewing 9 replies - 1 through 9 (of 9 total)