warmbeer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Paginate with get_option excluding child-categoriesI’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
In reply to: wp_list_categories: highlight current category when viewing single postmores,
for now ?? let’s see what will happen with WP-Version 2.7.
Glad to help You!Royal Bavarian Regards!
Forum: Plugins
In reply to: wp_list_categories: highlight current category when viewing single postPerhaps 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¤t_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
In reply to: wp_list_categories: highlight current category when viewing single postmores,
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
In reply to: Categories and Subcategories in PermalinkIt 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
In reply to: author link doesn’t show profileaddendum:
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
In reply to: author link doesn’t show profileOne (?) 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
In reply to: author link doesn’t show profileSivar,
?? 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
In reply to: author link doesn’t show profileSivar,
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() disappeared somehow?
Don’t worry, i assume, that the team knows about that issue and will fix this.
Forum: Fixing WordPress
In reply to: author link doesn’t show profilewhooami.
the field website within the admin/profile shows up the default (?) text: https://
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
In reply to: author link doesn’t show profilewhooami,
you’re right. this is what i am talking about. the_author_link() doesn’t show anything than https://.
So it appears as if the php-core somehow misleads the params form author_url and author_link.
Forum: Plugins
In reply to: static dimensions for uploaded original imagesThanks 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
In reply to: Date of last updated Page on FrontYes 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
In reply to: pretty permalinks without categoryAlmost 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
In reply to: pretty permalinks without categoryIt is a 1.5.2. Running Apache 2