Title: warmbeer's Replies | WordPress.org

---

# warmbeer

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Paginate with get_option excluding child-categories](https://wordpress.org/support/topic/paginate-with-get_option-excluding-child-categories/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/paginate-with-get_option-excluding-child-categories/#post-971762)
 * I’ve got the problem resolved:
 *     ```
       $cat_check_id = 12;
       $catChilds_IDs = array();
       $cater = get_categories("child_of=".$cat_check_id. "&title_li=&hide_empty=true");
       foreach((array) $cater as $cat){
       	array_unshift($catChilds_IDs,$cat->cat_ID);
       	}
       if(count($catChilds_IDs) > 0){
       	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;	
   
       	query_posts(array('category__not_in'=>$catChilds_IDs,'orderby'=>date,'showposts'=>get_option('posts_per_page'),'paged'=>$paged));
       	}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [wp_list_categories: highlight current category when viewing single post](https://wordpress.org/support/topic/wp_list_categories-highlight-current-category-when-viewing-single-post/)
 *  [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp_list_categories-highlight-current-category-when-viewing-single-post/#post-884301)
 * mores,
 * for now 😉 let’s see what will happen with WP-Version 2.7.
    Glad to help You!
 * Royal Bavarian Regards!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [wp_list_categories: highlight current category when viewing single post](https://wordpress.org/support/topic/wp_list_categories-highlight-current-category-when-viewing-single-post/)
 *  [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp_list_categories-highlight-current-category-when-viewing-single-post/#post-884285)
 * Perhaps the Codex does not display the parameter that the function wp_list_categories
   currently can handle.
 * I just stumbled about the parameter **current_category**.
    You just have to set
   the current Category-Id for this.
 * Try this in your Category-Template in your Templatefolder:
 *     ```
       <?php
       $catsy = get_the_category();
       $myCat = $catsy[0]->cat_ID;
       wp_list_categories('hierarchical=1&use_desc_for_title=0&orderby=name&title_li=&depth=3&current_category='.$myCat);
       ?>
       ```
   
 * Hope this helps. For my purposes it is working, though there could be more Functionality
   with collapsing Flaps. May be in the future…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [wp_list_categories: highlight current category when viewing single post](https://wordpress.org/support/topic/wp_list_categories-highlight-current-category-when-viewing-single-post/)
 *  [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wp_list_categories-highlight-current-category-when-viewing-single-post/#post-884282)
 * mores,
 * looks like “high noon” for dissolving the problems one can see over meanwhile
   2 years or so while reading the **“decoupling” and “consult hierarchy” comments**
   in the php core.
 * the whole mess with the **category-template** is fermenting since the devolopment
   focuses on tags and widgets.
 * i have to find a solution for this within the next few days and will post this
   here. but smells like it will be a greasy hack. stay tuned!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Categories and Subcategories in Permalink](https://wordpress.org/support/topic/categories-and-subcategories-in-permalink/)
 *  [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/categories-and-subcategories-in-permalink/#post-574730)
 * It seems as if the same issue confuses me too. But i’m using the permalinks-structure/
   category/postname/. Parent-cats working fine, posts-links working fine, but links
   of child-cats will trigger the index-template. And this is huge cadillac and 
   not a simple bug, that meanwhile thrills me a couple of nights.
 * Could anybody please explain this effect or help WP from loosing users?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [author link doesn’t show profile](https://wordpress.org/support/topic/author-link-doesnt-show-profile/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/author-link-doesnt-show-profile/#post-589538)
 * addendum:
 * finally i decided to copy the code from line 141 **the_author_posts_link()** 
   to line 85 and comment the mentioned missbehaviour:
 *     ```
       function the_author_link() {
       	global $authordata;
       	echo '<a href="' . get_author_posts_url($authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__("Posts by %s"), attribute_escape(get_the_author())) . '">' . get_the_author() . '</a>';
       ```
   
 * But this problem is not solved yet, or am i wrong?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [author link doesn’t show profile](https://wordpress.org/support/topic/author-link-doesnt-show-profile/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/author-link-doesnt-show-profile/#post-589531)
 * One (?) step ahead…
 * In author-template.php i found at line 84 the following:
 *     ```
       function the_author_link() {
       	if (get_the_author_url()) {
       		echo '<a href="' . get_the_author_url() ...
       ```
   
 * That means to me something like somebody undesigned inserted **get_the_author_url()**
   in here. No wonder that the_author_link echoes the authors home-url. This substitution
   disables the native sense of this function and just doubles get_the_author_url()!
 * After wondering a while about this i found in line 138:
 *     ```
       /* the_author_posts_link() requires no get_, use get_author_posts_url() */
       function the_author_posts_link($deprecated = '') {
       	global $authordata; ....
       ```
   
 * Unfortunately i have not enough time to check this out in older versions of WP.
   But setting a variable _$deprecated_, that never is used within this function–
   as well as in many others – is looking to me at least a little bit strange.
 * Next: I really couldn’t figure out, why the returned ancortext of the_author_posts_link
   did not match with the url of my author-page. The echoed link was always /author/
   admin/ instead of /author/myNickname/.
 * What means, that the database-values of my nickname / nicename were unchangeble
   by changing settings in the adminpanel. Updating the permalink-structure in admin-
   panel made no changes too. I succeeded with this after changing my user_nicename
   in the wp_users table manually with phpMyAdmin.
 * Now using the_author_posts_link() anything runs perfect – with other users too.
 * Thanks to Mr. and Mrs. Strange, this has been a nice evening.
 * Cheers from Bavaria
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [author link doesn’t show profile](https://wordpress.org/support/topic/author-link-doesnt-show-profile/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/author-link-doesnt-show-profile/#post-589490)
 * Sivar,
 * 😉 you’ve got it. it appears like all of the author tags are triggering the author.
   php, but not the the_author_link(). )-;
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [author link doesn’t show profile](https://wordpress.org/support/topic/author-link-doesnt-show-profile/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/author-link-doesnt-show-profile/#post-589488)
 * Sivar,
 * this is, what i meant and already checking out. i am lucky, that the the_author_posts_link
   is triggering the author.php.
 * But whooami, there is no need to be confused about my bad english or the circumstance,
   that the original meaning of [the_author_link()](http://codex.wordpress.org/Author_Templates#Using_Author_Information)
   disappeared somehow?
 * Don’t worry, i assume, that the team knows about that issue and will fix this.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [author link doesn’t show profile](https://wordpress.org/support/topic/author-link-doesnt-show-profile/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/author-link-doesnt-show-profile/#post-589477)
 * whooami.
 * the field website within the admin/profile shows up the default (?) text: http://
 * Sivar,
 * this one is working fine.
 * How do we get the params from the $authordata Array in there? May this could 
   help out for a while…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [author link doesn’t show profile](https://wordpress.org/support/topic/author-link-doesnt-show-profile/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/author-link-doesnt-show-profile/#post-589473)
 * whooami,
 * you’re right. this is what i am talking about. the_author_link() doesn’t show
   anything than [http://](https://wordpress.org/support/users/warmbeer/replies/?output_format=md).
 * So it appears as if the php-core somehow misleads the params form author_url 
   and author_link.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [static dimensions for uploaded original images](https://wordpress.org/support/topic/static-dimensions-for-uploaded-original-images/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/static-dimensions-for-uploaded-original-images/#post-563442)
 * Thanks Otto,
 * yes, all it is about is to resize the original images. The wp_handle_uploads 
   doesn’t seem to be the right file to be involved for this issue.
 * I’ll have a closer look to the wp_insert_attachment(), and if there are stil 
   some questions left, i will continue this thread. otherwis i’ll try to post my
   poor progressions here.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Date of last updated Page on Front](https://wordpress.org/support/topic/date-of-last-updated-page-on-front/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/date-of-last-updated-page-on-front/#post-350811)
 * Yes in deed, Matt – i want the time of the last modified page to be displayed
   on the front, index, home.php or how you want to name it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [pretty permalinks without category](https://wordpress.org/support/topic/pretty-permalinks-without-category/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/pretty-permalinks-without-category/#post-293092)
 * Almost clear. I’m using a template that is including header and footer without
   templates for them. My categories are the language-versions of my blog. In case
   of 404 it won’t find a category. 😉 Or am i wrong?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [pretty permalinks without category](https://wordpress.org/support/topic/pretty-permalinks-without-category/)
 *  Thread Starter [warmbeer](https://wordpress.org/support/users/warmbeer/)
 * (@warmbeer)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/pretty-permalinks-without-category/#post-293090)
 * It is a 1.5.2. Running Apache 2

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