Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter warmbeer

    (@warmbeer)

    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));
    	}

    mores,

    for now ?? let’s see what will happen with WP-Version 2.7.
    Glad to help You!

    Royal Bavarian Regards!

    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…

    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!

    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?

    Thread Starter warmbeer

    (@warmbeer)

    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?

    Thread Starter warmbeer

    (@warmbeer)

    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

    Thread Starter warmbeer

    (@warmbeer)

    Sivar,

    ?? you’ve got it. it appears like all of the author tags are triggering the author.php, but not the the_author_link(). )-;

    Thread Starter warmbeer

    (@warmbeer)

    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() disappeared somehow?

    Don’t worry, i assume, that the team knows about that issue and will fix this.

    Thread Starter warmbeer

    (@warmbeer)

    whooami.

    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…

    Thread Starter warmbeer

    (@warmbeer)

    whooami,

    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.

    Thread Starter warmbeer

    (@warmbeer)

    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.

    Thread Starter warmbeer

    (@warmbeer)

    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.

    Thread Starter warmbeer

    (@warmbeer)

    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?

    Thread Starter warmbeer

    (@warmbeer)

    It is a 1.5.2. Running Apache 2

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